:root {
    --bg-1: #0f172a;
    --bg-2: #111827;
    --bg-3: #1e293b;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --soft: #eff6ff;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(14, 165, 233, 0.14),
            transparent 26%
        ),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body {
    min-height: 100dvh;
}

.page {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vh, 24px) clamp(14px, 1.6vw, 24px);
}

.auth-shell {
    width: min(1180px, 100%);
    height: calc(100dvh - (clamp(12px, 2vh, 24px) * 2));
    max-height: 920px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-side {
    position: relative;
    padding: clamp(28px, 4vh, 52px) clamp(28px, 3vw, 48px);
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.96),
        rgba(30, 41, 59, 0.94)
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    height: 100%;
    min-height: auto;
}

.info-side::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.32),
        transparent 65%
    );
}

.info-side::after {
    content: "";
    position: absolute;
    inset: 30px auto auto -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.18),
        transparent 65%
    );
}

.brand {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.info-content {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 600;
    margin-bottom: clamp(12px, 1.5vh, 18px);
}

.info-title {
    font-size: clamp(30px, 2.7vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: clamp(12px, 1.5vh, 16px);
    max-width: 540px;
    text-align: left;
}

.info-desc {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    text-align: left;
}

.info-points {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
}

.point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
}

.point h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.point p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.info-footer {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.64);
    flex-shrink: 0;
}

.form-side {
    background: rgba(255, 255, 255, 0.92);
    padding: clamp(28px, 4vh, 52px) clamp(26px, 2.8vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.form-wrap {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: clamp(18px, 2.3vh, 28px);
}

.desktop-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(16px, 2vh, 26px);
}

.desktop-logo {
    width: 100%;
    max-width: clamp(150px, 15vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.desktop-logo-fallback {
    width: clamp(72px, 6vw, 88px);
    height: clamp(72px, 6vw, 88px);
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 2vw, 34px);
    font-weight: 800;
    border: 1px solid #dbeafe;
}

.form-header .mobile-brand {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 22px;
}

.mobile-brand .mobile-logo {
    width: 100%;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mobile-brand .mobile-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.mobile-brand-fallback {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    border: 1px solid #dbeafe;
}

.mobile-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.form-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-title {
    font-size: clamp(26px, 2.1vw, 32px);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-desc {
    color: var(--muted);
    font-size: clamp(14px, 1vw, 15px);
    line-height: 1.7;
}

.status-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 14px;
    line-height: 1.6;
}

.alert-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.6;
}

.alert-error ul {
    padding-left: 18px;
}

.alert-error li + li {
    margin-top: 4px;
}

.form-grid {
    display: grid;
    gap: clamp(14px, 1.6vh, 18px);
    margin-top: clamp(20px, 2.5vh, 28px);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.input-wrap {
    position: relative;
}

.input {
    width: 100%;
    height: clamp(48px, 5vh, 54px);
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input::placeholder {
    color: #94a3b8;
}

.field-error {
    font-size: 13px;
    color: var(--danger);
    line-height: 1.45;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.form-row-spaced {
    margin-top: 16px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    user-select: none;
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.submit-wrap {
    margin-top: 22px;
}

.btn {
    width: 100%;
    height: clamp(48px, 5vh, 54px);
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.btn:active {
    transform: translateY(0);
}

.bottom-note {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}

.bottom-note strong {
    color: #0f172a;
}

@media (min-width: 992px) {
    html,
    body {
        overflow: hidden;
    }

    .page {
        height: 100dvh;
    }

    .auth-shell {
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    .page {
        padding: 20px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        height: auto;
        min-height: auto;
    }

    .info-side {
        display: none;
    }

    .form-side {
        padding: 32px 22px;
        background: rgba(255, 255, 255, 0.96);
    }

    .desktop-logo-wrap {
        display: none;
    }

    .form-header .mobile-brand {
        display: flex;
    }

    .form-title {
        font-size: 28px;
        text-align: center;
    }

    .form-subtitle,
    .form-desc {
        text-align: center;
    }

    .form-desc {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        overflow: auto;
    }

    .page {
        padding: 0;
        align-items: stretch;
    }

    .auth-shell {
        min-height: 100vh;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        border: none;
    }

    .form-side {
        padding: 28px 18px;
        align-items: flex-start;
    }

    .form-wrap {
        max-width: none;
    }

    .mobile-brand .mobile-logo {
        max-width: 240px;
    }

    .form-title {
        font-size: 25px;
    }

    .input,
    .btn {
        height: 52px;
        border-radius: 14px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 992px) and (max-height: 800px) {
    .info-side,
    .form-side {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .desktop-logo-wrap {
        margin-bottom: 14px;
    }

    .form-header {
        margin-bottom: 18px;
    }

    .form-grid {
        gap: 12px;
        margin-top: 18px;
    }

    .bottom-note {
        margin-top: 12px;
        font-size: 12px;
    }

    .info-title {
        font-size: clamp(28px, 2.3vw, 34px);
    }

    .info-desc {
        font-size: 14px;
        line-height: 1.65;
    }
}

.password-wrap {
    position: relative;
}

.input-password {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: 0.2s ease;
}

.toggle-password:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
}

.toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.logout-link-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
