/* ============================================================
   ePDS Personal Data Sheet Portal
   Sliding Dual-Panel — Glassmorphism Theme
   Color Palette: #051d8c (navy), #FFFFFF (white), #eb020c (red)
   Font: Inter · Border Radius: 50px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --navy: #051d8c;
    --white: #FFFFFF;
    --red: #eb020c;
    --navy-light: #0a2eb3;
    --navy-dark: #031260;
    --red-light: #ff3340;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --radius: 50px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --slide-speed: 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--navy);
    overflow: hidden;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #6c84c8 0%, #a2a8d3 40%, #e28a96 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background layered wings */
.splash-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.splash-wing {
    position: absolute;
    opacity: 0;
    animation: splashWingIn 1.2s ease forwards;
}

.splash-wing-blue-1 {
    top: -25%;
    left: -15%;
    width: 70%;
    animation-delay: 0.1s;
}

.splash-wing-red-1 {
    bottom: -25%;
    right: -15%;
    width: 65%;
    transform: scaleX(-1) rotate(180deg);
    animation-delay: 0.2s;
}

@keyframes splashWingIn {
    to {
        opacity: 0.6;
    }
}

/* Splash Text Content */
.splash-content {
    position: relative;
    z-index: 10;
    max-width: 520px;
    opacity: 0;
    transform: translateY(24px);
    animation: splashContentIn 0.8s ease 0.6s forwards;
    text-align: center;
}

.splash-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 28px;
}

.splash-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.splash-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

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

/* ============================================================
   AUTH CONTAINER — Dual Sliding Panel
   ============================================================ */
/* ============================================================
   AUTH CONTAINER — Dual Sliding Panel
   ============================================================ */
.auth-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 16px;
    background: #020412; /* Deep slate-black */
}

.auth-container.visible {
    opacity: 1;
}

/* ---------- Background Decorations ---------- */
.auth-bg-decorations {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Background glowing blur elements */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    mix-blend-mode: screen;
    will-change: transform;
}

.bg-glow--blue {
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 46, 179, 0.8) 0%, rgba(5, 29, 140, 0) 70%);
}

.bg-glow--red {
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(235, 2, 12, 0.6) 0%, rgba(235, 2, 12, 0) 70%);
}

/* Background wings peeking out behind the main card */
.bg-wing {
    position: absolute;
    opacity: 0.28;
    z-index: 2;
    pointer-events: none;
    transition: transform var(--slide-speed);
}

.bg-wing--top-left {
    top: -10%;
    left: -5%;
    width: 45%;
    max-width: 600px;
    transform: rotate(-15deg);
    animation: wingFloatLeft 12s ease-in-out infinite;
}

.bg-wing--bottom-right {
    bottom: -10%;
    right: -5%;
    width: 40%;
    max-width: 550px;
    transform: scaleX(-1) rotate(165deg);
    animation: wingFloatRight 12s ease-in-out infinite;
}

@keyframes wingFloatLeft {
    0%, 100% {
        transform: rotate(-15deg) translate(0, 0);
    }
    50% {
        transform: rotate(-12deg) translate(10px, 15px);
    }
}

@keyframes wingFloatRight {
    0%, 100% {
        transform: scaleX(-1) rotate(165deg) translate(0, 0);
    }
    50% {
        transform: scaleX(-1) rotate(168deg) translate(-10px, -15px);
    }
}

/* ---------- Forms Layer (both forms sit side by side) ---------- */
.forms-layer {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    display: flex;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    z-index: 3;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Form Panels ---------- */
.form-panel {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 48px;
}

.form-panel--login {
    background: var(--white);
}

.form-panel--signup {
    background: var(--white);
}

.form-panel-inner {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Only the active side is visible */
.auth-container.visible .form-panel--login .form-panel-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* When signup mode: login fades, signup appears */
.auth-container.signup-mode .form-panel--login .form-panel-inner {
    opacity: 0;
    transform: translateY(16px);
    transition-delay: 0s;
}

.auth-container.signup-mode .form-panel--signup .form-panel-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* When going back to login */
.auth-container:not(.signup-mode) .form-panel--signup .form-panel-inner {
    opacity: 0;
    transform: translateY(16px);
    transition-delay: 0s;
}

/* ============================================================
   OVERLAY CONTAINER — The sliding decorative panel
   ============================================================ */
.overlay-container {
    position: absolute;
    top: 40px;
    left: calc(50% + 40px);
    right: 40px;
    bottom: 40px;
    width: calc(50% - 80px);
    height: calc(100% - 80px);
    z-index: 10;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform var(--slide-speed);
}

/* When signup mode, slide overlay to the LEFT */
.auth-container.signup-mode .overlay-container {
    transform: translateX(calc(-100% - 80px));
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg,
            rgba(220, 195, 210, 0.45) 0%,
            rgba(200, 210, 240, 0.4) 25%,
            rgba(230, 220, 230, 0.35) 45%,
            rgba(210, 220, 245, 0.4) 65%,
            rgba(195, 210, 240, 0.5) 85%,
            rgba(220, 210, 235, 0.4) 100%);
    backdrop-filter: blur(55px) saturate(1.5);
    -webkit-backdrop-filter: blur(55px) saturate(1.5);
    background-color: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Overlay Text & Content (Navy / Dark Gray matching dashboard) ---------- */
.overlay-panel h2 {
    font-family: 'Inter', sans-serif;
    color: var(--navy-dark);
}

.overlay-panel p {
    color: var(--gray-600);
}

.overlay-logo {
    filter: none;
}

/* ---------- Wing Assets — Glowing & floating in overlay ---------- */
.wing-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    filter: drop-shadow(0 0 20px rgba(10, 46, 179, 0.3));
}

.wing-blue {
    top: -15%;
    left: -15%;
    width: 100%;
    height: auto;
    animation: wingFloat 8s ease-in-out infinite;
}

.wing-red {
    bottom: -15%;
    right: -15%;
    width: 90%;
    height: auto;
    transform: scaleX(-1) rotate(180deg);
    animation: wingFloat 8s ease-in-out infinite 1.5s;
}

@keyframes wingFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5px, 8px);
    }
}

/* ============================================================
   PROGRESSIVE BLUR — Pure linear gradient overlay
   ============================================================ */
.progressive-blur {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
}

/* ---------- Overlay Panels (content on each side) ---------- */
.overlay-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 48px 40px;
    z-index: 3;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* RIGHT panel content — shown by default (login mode) */
.overlay-panel--right {
    opacity: 1;
    transform: translateX(0);
}

.auth-container.signup-mode .overlay-panel--right {
    opacity: 0;
    transform: translateX(20%);
}

/* LEFT panel content — hidden by default, shown in signup mode */
.overlay-panel--left {
    opacity: 0;
    transform: translateX(-20%);
}

.auth-container.signup-mode .overlay-panel--left {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Overlay Content (text on progressive blur) ---------- */
.overlay-content {
    max-width: 360px;
}

.overlay-logo {
    width: 52px;
    height: auto;
    margin-bottom: 20px;
    filter: none;
}

.overlay-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.2;
}

.overlay-content p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================================
   FORM HEADER
   ============================================================ */
.login-card-header {
    margin-bottom: 32px;
}

.login-card-logo {
    width: 60px;
    height: auto;
    margin-bottom: 24px;
}

.login-card-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.login-card-header p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 12px;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================================
   FORM INPUTS & LABELS
   ============================================================ */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 6px;
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color var(--transition-fast);
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--navy-dark);
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-input:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.form-input:focus {
    background: var(--white);
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(10, 46, 179, 0.08);
}

.form-input:focus~.form-input-icon {
    color: var(--navy-light);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    padding: 4px;
    color: #94a3b8;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--navy-light);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   FORM OPTIONS & CHECKBOXES
   ============================================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 24px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.checkbox-container input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.forgot-link {
    color: var(--navy);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    width: 100%;
    padding: 14px 28px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--navy-light);
    box-shadow: none;
    transform: translateY(-1.1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .spinner {
    display: block;
}

/* Google Auth Button Mockup */
.btn-google {
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: none;
}

.google-icon {
    width: 18px;
    height: 18px;
}

.divider-text {
    text-align: center;
    margin: 20px 0;
    position: relative;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e2e8f0;
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ============================================================
   FOOTER & LINKS
   ============================================================ */
.form-footer {
    text-align: center;
    margin-top: 24px;
}

.form-footer p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.form-footer a {
    color: var(--navy);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.form-footer a:hover {
    color: var(--red);
}

.resend-timer {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 8px;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.form-message {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: messageIn 0.3s ease;
}

.form-message.visible {
    display: flex;
}

.form-message.error {
    background: rgba(235, 2, 12, 0.08);
    color: var(--red);
}

.form-message.success {
    background: rgba(5, 29, 140, 0.08);
    color: var(--navy);
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

/* ============================================================
   CARD VIEW TRANSITIONS (signup / otp toggle)
   ============================================================ */
.card-view {
    display: none;
}

.card-view.active {
    display: block;
    animation: viewFade 0.35s ease;
}

@keyframes viewFade {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

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

/* ============================================================
   OTP INPUTS
   ============================================================ */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
}

.otp-input:focus {
    background: var(--gray-100);
    box-shadow: 0 0 0 3px rgba(5, 29, 140, 0.08);
}

/* ============================================================
   BACK BUTTON
   ============================================================ */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-400);
    background: none;
    margin-bottom: 16px;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.btn-back:hover {
    color: var(--navy);
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .auth-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        height: auto;
        padding: 24px 16px;
        background: #020412; /* Deep slate-black */
    }

    .auth-bg-decorations {
        display: none;
    }

    /* Convert forms-layer to the top part of the card */
    .forms-layer {
        order: 1;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 440px;
        height: auto;
        min-height: auto;
        background: var(--white);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        box-shadow: 0 10px 30px rgba(3, 18, 96, 0.04);
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow: hidden;
    }

    /* Convert overlay-container to the bottom part of the card */
    .overlay-container {
        order: 2;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 440px;
        height: 200px;
        transform: none !important;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 15px 30px rgba(3, 18, 96, 0.08);
        overflow: hidden;
        margin-top: -1px;
        /* overlap slightly to hide seam */
    }

    .overlay {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        height: 100%;
        width: 100%;
    }

    .overlay-panel {
        position: absolute;
        inset: 0;
        padding: 24px 32px;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        transform: translateY(10px);
    }

    .overlay-content {
        max-width: 100%;
    }

    .overlay-logo {
        width: 32px;
        height: auto;
        margin-bottom: 12px;
        filter: none;
    }

    .overlay-content h2 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--navy-dark);
        margin-bottom: 6px;
    }

    .overlay-content p {
        font-size: 0.8rem;
        color: var(--gray-600);
        line-height: 1.4;
    }

    /* Stack panels in the same grid cell for clean transitions */
    .form-panel {
        grid-area: 1 / 1 / 2 / 2;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 40px 32px 32px 32px;
        background: transparent;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transform: translateX(15px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    /* Disable desktop panel inner transitions to prevent interference */
    .form-panel-inner {
        width: 100%;
        max-width: 100%;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* --- Mobile Animation States --- */

    /* Active Login Panel */
    .auth-container:not(.signup-mode) .form-panel--login {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    /* Inactive Login Panel (slides left out of view) */
    .auth-container.signup-mode .form-panel--login {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-15px);
    }

    /* Active Signup Panel */
    .auth-container.signup-mode .form-panel--signup {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    /* Inactive Signup Panel (slides right out of view) */
    .auth-container:not(.signup-mode) .form-panel--signup {
        opacity: 0;
        pointer-events: none;
        transform: translateX(15px);
    }

    /* Show the appropriate overlay content on mobile */
    .auth-container:not(.signup-mode) .overlay-panel--right {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .auth-container.signup-mode .overlay-panel--left {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 12px 8px;
    }

    .forms-layer {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .overlay-container {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        height: 180px;
    }

    .form-panel {
        padding: 32px 20px 24px 20px;
    }

    .login-card-header h1 {
        font-size: 1.4rem;
    }

    .form-input {
        padding: 14px 16px 14px 44px;
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 14px 20px;
    }

    .otp-input {
        width: 36px;
        height: 44px;
        font-size: 1.05rem;
    }
}

/* --- Clear Error States & Input Clear Buttons --- */
.form-input.has-error {
    border-color: var(--red) !important;
}

.field-error-message {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    text-align: left;
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-right: 40px !important;
}

.form-input-wrapper .input-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    z-index: 10;
    transition: color 0.2s ease;
}

.form-input-wrapper .input-clear-btn:hover {
    color: var(--red);
}