﻿/* Login OTP page - VideoServer */
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/Content/fonts/Vazirmatn.woff2") format("woff2"),
         url("/Content/Login/fonts/Vazirmatn.woff2") format("woff2");
}

@font-face {
    font-family: "Estedad";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/Content/Admin/fonts/estedad.woff2") format("woff2"),
         url("/Content/fonts/estedad.woff2") format("woff2");
}

:root {
    --vs-font-family: "Vazirmatn", "Estedad", "IRANSans", "Yekan", Tahoma, Arial, sans-serif;
}

* {
        box-sizing: border-box;
    }

    body.vs-auth-body {
        min-height: 100vh;
        margin: 0;
        direction: rtl;
        font-family: var(--vs-font-family);
        background: radial-gradient(circle at 15% 8%, rgba(236, 72, 153, .23), transparent 30%), radial-gradient(circle at 80% 12%, rgba(14, 165, 233, .24), transparent 30%), linear-gradient(135deg, #0f172a 0%, #172554 48%, #312e81 100%);
        overflow-x: hidden;
    }

    .vs-auth-shell {
        width: min(1180px, calc(100% - 32px));
        min-height: 100vh;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(400px, .75fr);
        gap: 26px;
        align-items: center;
        padding: 28px 0;
    }

    .vs-auth-visual {
        position: relative;
        min-height: 690px;
        overflow: hidden;
        border-radius: 34px;
        padding: 30px;
        color: #fff;
        background: radial-gradient(circle at 8% 14%, rgba(255,255,255,.18), transparent 32%), radial-gradient(circle at 92% 75%, rgba(34, 211, 238, .22), transparent 30%), linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
        border: 1px solid rgba(255,255,255,.16);
        box-shadow: 0 34px 100px rgba(0,0,0,.26);
        backdrop-filter: blur(24px);
    }

        .vs-auth-visual:before,
        .vs-auth-visual:after {
            content: "";
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
        }

        .vs-auth-visual:before {
            width: 320px;
            height: 320px;
            left: -100px;
            bottom: -90px;
            background: rgba(236, 72, 153, .24);
            filter: blur(4px);
        }

        .vs-auth-visual:after {
            width: 210px;
            height: 210px;
            right: -80px;
            top: 130px;
            border: 1px solid rgba(255,255,255,.25);
        }

    .vs-brand-row {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 950;
        font-size: 18px;
    }

    .vs-brand-logo {
        max-width: 150px;
        height: auto;
    }

    .vs-visual-content {
        position: relative;
        z-index: 2;
        margin-top: 95px;
        max-width: 650px;
    }

    .vs-kicker {
        display: inline-flex;
        padding: 9px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,.15);
        border: 1px solid rgba(255,255,255,.16);
        color: #e0f2fe;
        font-weight: 850;
        margin-bottom: 18px;
    }

    .vs-visual-content h1 {
        font-size: clamp(30px, 4vw, 54px);
        line-height: 1.45;
        font-weight: 950;
        margin: 0 0 16px;
        color: #fff;
    }

    .vs-visual-content p {
        color: rgba(255,255,255,.80);
        line-height: 2.1;
        font-size: 15px;
        margin: 0;
    }

    .vs-feature-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 34px;
    }

    .vs-feature-card {
        min-height: 130px;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.14);
        backdrop-filter: blur(16px);
    }

        .vs-feature-card i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 15px;
            color: #0f172a;
            background: #fff;
            margin-bottom: 12px;
        }

        .vs-feature-card strong,
        .vs-feature-card span {
            display: block;
        }

        .vs-feature-card strong {
            color: #fff;
            font-weight: 950;
        }

        .vs-feature-card span {
            color: rgba(255,255,255,.70);
            margin-top: 5px;
            font-size: 12px;
        }

    .vs-auth-card {
        position: relative;
        border-radius: 34px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(255,255,255,.72);
        box-shadow: 0 34px 100px rgba(0,0,0,.24);
        padding: 28px;
        backdrop-filter: blur(22px);
    }

    .vs-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 20px;
    }

        .vs-card-head span {
            color: #7c3aed;
            font-weight: 900;
            font-size: 12px;
        }

        .vs-card-head h2 {
            color: #0f172a;
            margin: 4px 0 0;
            font-size: 26px;
            font-weight: 950;
        }

    .vs-secure-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 12px;
        border-radius: 999px;
        color: #047857;
        background: #ecfdf5;
        border: 1px solid #bbf7d0;
        font-weight: 900;
    }

    .vs-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 7px;
        border-radius: 20px;
        background: #f1f5f9;
        margin-bottom: 20px;
    }

    .vs-tab {
        border: 0;
        min-height: 48px;
        border-radius: 15px;
        color: #64748b;
        background: transparent;
        font-weight: 950;
        transition: all .22s ease;
        cursor: pointer;
    }

        .vs-tab i {
            margin-left: 7px;
        }

        .vs-tab.active {
            color: #fff;
            background: linear-gradient(135deg, #7c3aed, #ec4899);
            box-shadow: 0 12px 24px rgba(124,58,237,.22);
        }

    .vs-tab-panel {
        display: none;
    }

        .vs-tab-panel.active {
            display: block;
            animation: vsFade .25s ease both;
        }

    .vs-field {
        margin-bottom: 15px;
    }

        .vs-field label {
            display: block;
            color: #0f172a;
            font-weight: 950;
            margin-bottom: 8px;
        }

    .vs-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
        border-radius: 18px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        min-height: 54px;
        transition: all .2s ease;
    }

        .vs-input-wrap:focus-within {
            background: #fff;
            border-color: #a78bfa;
            box-shadow: 0 0 0 5px rgba(124,58,237,.11);
        }

        .vs-input-wrap > i {
            width: 46px;
            text-align: center;
            color: #7c3aed;
        }

    .vs-input {
        width: 100%;
        height: 52px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #0f172a;
        font-weight: 850;
        padding: 0 2px 0 14px;
    }

        .vs-input::placeholder {
            color: #94a3b8;
        }

    .vs-eye,
    .vs-refresh {
        width: 42px;
        height: 42px;
        margin-left: 7px;
        border: 0;
        border-radius: 14px;
        background: #fff;
        color: #64748b;
        cursor: pointer;
    }

    .vs-captcha-box {
        display: grid;
        grid-template-columns: 118px 1fr;
        gap: 10px;
        align-items: center;
        margin-bottom: 15px;
    }

    .vs-captcha-question {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 54px;
        border-radius: 18px;
        color: #fff;
        font-weight: 950;
        direction: ltr;
        background: linear-gradient(135deg, #0f172a, #334155);
        box-shadow: 0 12px 24px rgba(15,23,42,.14);
    }

    .vs-form-row,
    .vs-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .vs-check {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #475569;
        font-weight: 850;
        cursor: pointer;
    }

        .vs-check input {
            accent-color: #7c3aed;
        }

    .vs-link-btn, .vs-register-btn {
        border: 0;
        background: transparent;
        color: #7c3aed;
        font-weight: 950;
        cursor: pointer;
    }

    .vs-submit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 54px;
        border: 0;
        border-radius: 18px;
        color: #fff;
        background: linear-gradient(135deg, #7c3aed, #ec4899);
        font-weight: 950;
        box-shadow: 0 18px 34px rgba(124,58,237,.24);
        cursor: pointer;
        transition: all .22s ease;
    }

        .vs-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 42px rgba(124,58,237,.30);
        }

        .vs-submit-btn:disabled {
            opacity: .65;
            cursor: not-allowed;
            transform: none;
        }

    .vs-submit-alt {
        background: linear-gradient(135deg, #0ea5e9, #22c55e);
        box-shadow: 0 18px 34px rgba(14,165,233,.22);
    }

    .vs-otp-verify {
        display: none;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px dashed #e2e8f0;
    }

        .vs-otp-verify.active {
            display: block;
            animation: vsFade .25s ease both;
        }

    .vs-otp-status {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 13px;
        border-radius: 18px;
        background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
        border: 1px solid #dbeafe;
        margin-bottom: 15px;
    }

        .vs-otp-status strong {
            display: block;
            color: #0f172a;
            font-weight: 950;
        }

        .vs-otp-status span {
            display: block;
            color: #64748b;
            font-size: 12px;
            margin-top: 3px;
        }

        .vs-otp-status b {
            color: #059669;
            font-size: 22px;
            direction: ltr;
        }

    .vs-otp-input-wrap .vs-input {
        text-align: center;
        letter-spacing: 7px;
        font-size: 22px;
        direction: ltr;
    }

    .vs-ghost-btn {
        width: 100%;
        margin-top: 10px;
        min-height: 46px;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #334155;
        font-weight: 950;
        cursor: pointer;
    }

        .vs-ghost-btn:disabled {
            opacity: .55;
            cursor: not-allowed;
        }

    .vs-otp-note {
        margin-top: 12px;
        padding: 10px 12px;
        border-radius: 14px;
        color: #64748b;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        line-height: 1.85;
        font-weight: 650;
        font-size: 12px;
    }

        .vs-otp-note i {
            color: #94a3b8;
            margin-left: 6px;
            font-size: 12px;
        }

    .vs-card-footer {
        justify-content: center;
        margin: 22px 0 0;
        padding-top: 18px;
        border-top: 1px solid #eef2f7;
        color: #64748b;
        font-weight: 850;
    }

    .vs-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 18px;
    }

        .vs-modal.active {
            display: flex;
        }

    .vs-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15,23,42,.62);
        backdrop-filter: blur(10px);
    }

    .vs-modal-card {
        position: relative;
        z-index: 2;
        width: min(520px, 100%);
        max-height: calc(100vh - 36px);
        overflow: auto;
        border-radius: 28px;
        background: #fff;
        padding: 24px;
        box-shadow: 0 30px 90px rgba(0,0,0,.30);
        animation: vsPop .25s ease both;
    }

    .vs-modal-close {
        position: absolute;
        top: 18px;
        left: 18px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 14px;
        background: #f1f5f9;
        color: #64748b;
        cursor: pointer;
    }

    .vs-modal-head {
        display: flex;
        gap: 14px;
        align-items: center;
        margin-bottom: 20px;
        padding-left: 48px;
    }

        .vs-modal-head > i {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 54px;
            height: 54px;
            border-radius: 18px;
            color: #fff;
            background: linear-gradient(135deg, #7c3aed, #ec4899);
        }

    .vs-register-head > i {
        background: linear-gradient(135deg, #0ea5e9, #22c55e);
    }

    .vs-modal-head h3 {
        color: #0f172a;
        margin: 0 0 5px;
        font-size: 20px;
        font-weight: 950;
    }

    .vs-modal-head p {
        color: #64748b;
        margin: 0;
        line-height: 1.8;
    }

    .vs-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .vs-confirm-register {
        display: none;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px dashed #e2e8f0;
    }

        .vs-confirm-register.active {
            display: block;
        }

    .vs-toast {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 10000;
        min-width: 280px;
        max-width: calc(100% - 48px);
        padding: 13px 15px;
        border-radius: 18px;
        color: #fff;
        background: #0f172a;
        box-shadow: 0 18px 44px rgba(0,0,0,.22);
        transform: translateY(18px) scale(.98);
        opacity: 0;
        pointer-events: none;
        transition: all .22s ease;
        font-weight: 850;
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1.8;
    }

        .vs-toast.show {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .vs-toast i {
            font-size: 18px;
            opacity: .95;
        }

    .vs-toast-success {
        background: linear-gradient(135deg, #059669, #10b981);
    }

    .vs-toast-error {
        background: linear-gradient(135deg, #dc2626, #ef4444);
    }

    @keyframes vsFade {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes vsPop {
        from {
            opacity: 0;
            transform: translateY(18px) scale(.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 1024px) {
        .vs-auth-shell {
            grid-template-columns: 1fr;
            padding: 18px 0;
        }

        .vs-auth-visual {
            min-height: auto;
        }

        .vs-visual-content {
            margin-top: 40px;
        }
    }

    @media (max-width: 640px) {
        .vs-auth-shell {
            width: min(100% - 18px, 1180px);
        }

        .vs-auth-visual {
            display: none;
        }

        .vs-auth-card {
            padding: 18px;
            border-radius: 26px;
        }

        .vs-card-head h2 {
            font-size: 21px;
        }

        .vs-captcha-box {
            grid-template-columns: 1fr;
        }

        .vs-tabs {
            grid-template-columns: 1fr;
        }

        .vs-two-col {
            grid-template-columns: 1fr;
        }

        .vs-modal {
            align-items: flex-end;
            padding: 10px;
        }

        .vs-modal-card {
            border-radius: 24px 24px 18px 18px;
        }
    }

    /* ===== Mobile layout fix: keep login card inside viewport ===== */
    @media (max-width: 1024px) {
        html, body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden !important;
        }

            body.vs-auth-body {
                min-height: 100svh;
                overflow-y: auto;
            }

        .vs-auth-shell {
            width: min(100% - 24px, 540px) !important;
            min-height: 100svh;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            grid-template-columns: none !important;
            gap: 0 !important;
            padding: 16px 0 !important;
        }

        .vs-auth-visual {
            display: none !important;
        }

        .vs-auth-card {
            width: 100% !important;
            max-width: 540px !important;
            margin: 0 auto !important;
        }
    }

    @media (max-width: 640px) {
        body.vs-auth-body {
            background: linear-gradient(180deg, #172554 0%, #312e81 48%, #f8fafc 48%, #f8fafc 100%) !important;
        }

        .vs-auth-shell {
            width: 100% !important;
            min-height: 100svh !important;
            align-items: flex-start !important;
            padding: 0 !important;
        }

        .vs-auth-card {
            width: 100% !important;
            min-height: 100svh;
            margin: 0 !important;
            border-radius: 0 !important;
            padding: 24px 18px 28px !important;
            box-shadow: none !important;
            border: 0 !important;
            background: #fff !important;
        }

        .vs-card-head {
            margin-top: 0 !important;
        }

        .vs-tabs {
            grid-template-columns: 1fr 1fr !important;
            gap: 6px !important;
            padding: 6px !important;
        }

        .vs-tab {
            min-height: 48px !important;
            font-size: 13px !important;
            padding: 0 8px !important;
        }

        .vs-input-wrap {
            min-height: 52px !important;
        }

        .vs-captcha-box {
            grid-template-columns: 1fr !important;
        }
    }
