﻿/* styles.css */
:root {
    --wi-modal-bg: rgba(0,0,0,.70);
    --wi-box-bg-top: #1a1a1a;
    --wi-box-bg: #0f0f0f;
    --wi-line: rgba(255,255,255,.08);
    --wi-text: rgba(255,255,255,.85);
    --wi-muted: rgba(255,255,255,.60);
    --wi-title: #f5c400; /* yellow title */
    --wi-btn: #f5c400; /* yellow OK */
    --wi-btn-text: #111;
    --bg: #0b0b0c;
    --panel: #ffffff;
    --text: #111;
    --muted: #6b7280;
    --line: #e5e7eb;
    --input: #f3f4f6;
    --btn: #6b6b6b;
    --green: #22c55e;
    --radius: 10px;
    --shadow: 0 18px 40px rgba(0,0,0,.12);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

.split {
    min-height: 100vh;
    display: flex;
}

/* LEFT */
.left {
    flex: 1 1 60%;
    background: #fff;
    padding: 36px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)), radial-gradient(900px 500px at 55% 45%, rgba(0,188,212,.10), transparent 60%), #0a0a0a;
}
.clsClose {
    text-align: right !important;
    margin-right: 5px;
    cursor: pointer;
}
/* RIGHT */
.right {
    flex: 0 0 40%;
    background: var(--panel);
    display: flex;
    align-items: stretch;
    padding: 26px 22px;
}

.panel {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height:725px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
}

.brand-name {
    background-image: url(../Images/WATCHITLOGOBlack.png);
    background-size: cover;
    width: 200px;
    height: 40px;
    margin: 0 0 10px -10px;
}

.title {
    margin: 10px 0 6px;
    font-size: 34px;
    line-height: 1.1;
}

.subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
}

.form {
    margin-top: 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 12.5px;
    color: #111;
    margin: 0 0 7px;
}

input {
    width: 100%;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--input);
    padding: 0 14px;
    outline: none;
    font-size: 14px;
    color: #111;
}

    input:focus {
        border-color: #cfd6dd;
        box-shadow: 0 0 0 3px rgba(0,0,0,.05);
    }

.input-wrap {
    position: relative;
}

    .input-wrap input {
        padding-right: 44px;
    }

.icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .icon-btn:hover {
        background: rgba(0,0,0,.04);
    }

    .icon-btn.is-on svg path {
        stroke: #111;
    }

.primary {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--btn);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

    .primary:hover {
        filter: brightness(.95);
    }

.foot {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

    .foot .login {
        color: var(--green);
        text-decoration: none;
        font-weight: 600;
    }

        .foot .login:hover {
            text-decoration: underline;
        }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .right {
        flex-basis: 440px;
    }

    .title {
        font-size: 30px;
    }
}

@media (max-width: 860px) {
    .split {
        flex-direction: column;
    }

    .left {
        padding: 18px 14px;
    }

    .right {
        flex: 0 0 auto;
        padding: 22px 16px 30px;
    }

    .panel {
        max-width: 520px;
    }
}

@media (max-width: 520px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 28px;
    }
}


.wi-popup-backdrop {
    position: fixed;
    inset: 0;
    display: none; /* toggle via .active */
    align-items: center;
    justify-content: center;
    background: var(--wi-modal-bg);
    z-index: 99999;
    padding: 18px;
}

    .wi-popup-backdrop.active {
        display: flex;
    }

/* Modal box */
.wi-popup-box {
    width: min(380px, 100%);
    border-radius: 6px;
    overflow: hidden;
    background:#0a0a0a;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 60px rgba(0,0,0,.75);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    animation: wiMsgIn .18s ease-out;
}

/* Header */
.wi-popup-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid var(--wi-line);
    background: transparent;
}

#wi-popup-title {
    font-weight: 700;
    letter-spacing: .6px;
    font-size: 14px;
    text-transform: uppercase;
    user-select: none;
}

/* Close X */
.wi-popup-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--wi-muted);
    font-size: 18px;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
}

    .wi-popup-close:hover {
        color: rgba(255,255,255,.90);
        background: rgba(255,255,255,.05);
    }

/* Body */
.wi-popup-body {
    padding: 18px 16px 14px 16px;
    color: var(--wi-text);
    font-size: 13px;
    line-height: 1.45;
    min-height: 64px;
}

#wi-popup-text {
    color: var(--wi-text);
}

/* Footer */
.wi-popup-footer {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* OK on the right */
    padding: 0 16px 12px 16px;
}

/* OK Button (yellow pill) */
.wi-popup-btn {
    min-width: 82px;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #00e4ff;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

    .wi-popup-btn:hover {
        filter: brightness(1.03);
    }

    .wi-popup-btn:active {
        transform: translateY(1px);
    }

    /* Optional: focus outlines */
    .wi-popup-close:focus,
    .wi-popup-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(245,196,0,.22);
    }

/* Animation */
@keyframes wiMsgIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wi-popup-info .wi-popup-header {
    color: #00e4ff;
}

.wi-popup-warning .wi-popup-header {
    color: #ffd74a;
}

.wi-popup-error .wi-popup-header {
    color: #ff4a4a;
}

.wi-popup-warning .wi-popup-btn {
    background: #ffd74a;
    color: #000;
}

.wi-popup-error .wi-popup-btn {
    background: #ff4a4a;
    color: #000;
}
/* Prevent Chrome yellow autofill background */
.no-autofill:-webkit-autofill,
.no-autofill:-webkit-autofill:hover,
.no-autofill:-webkit-autofill:focus,
.no-autofill:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1f1f1f inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}



.wi-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .wi-overlay.show {
        display: flex;
    }

.wi-popup {
    width: 320px;
    max-width: 90vw;
    background: #050505;
    border-radius: 14px;
    border: 1px solid #222;
    box-shadow: 0 18px 45px rgba(0,0,0,.85);
    overflow: hidden;
    animation: popIn .25s ease-out;
}

.wi-popup-header {
    border-bottom: 1px solid #262626;
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wi-popup-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f0;
    margin-left: 5px;
    box-shadow: 0 0 10px rgba(0,255,0,.6);
}
.wi-popup-box .wi-popup-header span:not(.wi-popup-header-dot) {
    width: 100%;
    text-align: left;
}

.wi-popup-header span:not(.wi-popup-header-dot) {
    width: 100%;
    text-align: center;
}

.wi-popup-body {
    padding: 18px;
    background: radial-gradient(circle at top, #111 0, #050505 55%, #000 100%);
}

.loading-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.loading-subtext {
    font-size: 11px;
    color: #888;
    margin-bottom: 16px;
}

.progress-wrapper {
    width: 100%;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: #777;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #141414;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #262626;
}

.progress-bar {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg,#444,#e5e5e5,#999);
    border-radius: inherit;
    animation: loadingBar 2.2s ease-in-out infinite;
}

.progress-glow {
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle at 0 50%, rgba(255,255,255,.1), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.loading-percent {
    text-align: right;
    margin-top: 6px;
    font-size: 11px;
    color: #bfbfbf;
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes popIn {
    from {
        transform: translateY(10px) scale(.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.Clear {
    clear: both;
}

.Flex {
    display: flex !important;
}

.Show {
    display: block !important;
}

.Hide {
    display: none !important;
}
