/* Reservize auth surfaces with animated glow */

.auth-page {
    --auth-green-500: #16a34a;
    --auth-green-600: #15803d;
    --auth-green-700: #0f7a33;
    --auth-teal-400: #2dd4bf;
    --auth-surface: rgba(255, 255, 255, 0.92);
    --auth-surface-soft: rgba(255, 255, 255, 0.72);
    --auth-text: #0b0f14;
    --auth-muted: #64748b;
    --auth-border: rgba(15, 23, 42, 0.1);
    --auth-focus: rgba(22, 163, 74, 0.2);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background:
        radial-gradient(circle at 14% 14%, rgba(74, 222, 128, 0.35), transparent 34%),
        radial-gradient(circle at 84% -10%, rgba(45, 212, 191, 0.18), transparent 42%),
        linear-gradient(135deg, #041521 0%, #0c4a2f 42%, #15803d 100%);
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(10px);
}

.auth-page::before {
    width: 25vmax;
    height: 25vmax;
    top: -5vmax;
    right: -2vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.25) 0%, rgba(74, 222, 128, 0) 68%);
    animation: authOrbDriftA 13s ease-in-out infinite alternate;
}

.auth-page::after {
    width: 22vmax;
    height: 22vmax;
    bottom: -5vmax;
    left: -2vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0) 70%);
    animation: authOrbDriftB 15s ease-in-out infinite alternate;
}

.auth-page .login-container {
    position: relative;
    z-index: 2;
    width: min(100%, 440px);
    max-width: 440px;
    padding: 4px;
    /* INCREASED thickness of the glowing border */
    border-radius: 27px;
    /* 23px inner card + 4px padding = 27px */
    overflow: hidden;
    /* Clips the spinning gradient to the border box */

    /* Safari/WebKit fixes to force overflow hidden to clip animations inside border-radius */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    isolation: isolate;

    background-color: transparent;
    /* Transparent track to frame the white card */
    animation: authCardEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    /* Subtle outer shadow to enhance the 3D effect without leaking scrollbars */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* The Rotating Glow Element */
.auth-page .login-container::before {
    content: "";
    position: absolute;
    /* Force a massive perfect square to cover any tall mobile aspect ratio */
    width: 250%;
    aspect-ratio: 1/1;
    left: -75%;
    top: -50%;
    z-index: 0;
    /* Two bright SaaS green sweeps */
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 15%,
            rgba(22, 163, 74, 0.1) 20%,
            /* Darker Green tail */
            #16a34a 25%,
            /* Darker Green head */
            transparent 25%,
            transparent 65%,
            rgba(34, 197, 94, 0.1) 70%,
            /* Neon Green tail */
            #22c55e 75%,
            /* Neon Green head */
            transparent 75%,
            transparent 100%);
    animation: authBorderSpin 4s linear infinite;
    pointer-events: none;
}

.auth-page .login-card {
    position: relative;
    z-index: 1;
    /* Sits exactly on top of the glowing background, leaving a 3px border */
    border-radius: 23px;
    /* 26px - 3px = 23px, perfectly aligns the corners */
    padding: 24px 32px 30px;
    background: var(--auth-surface);
    backdrop-filter: blur(20px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.auth-page .login-card::-webkit-scrollbar {
    display: none;
}

.auth-page .login-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.42);
    pointer-events: none;
}

.auth-page .login-header {
    margin-bottom: 20px;
}

.auth-page .logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow:
        0 10px 24px rgba(22, 163, 74, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    animation: authLogoFloat 4.2s ease-in-out infinite;
}

.auth-page .logo-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.36);
    pointer-events: none;
}

.auth-page .logo-text {
    color: var(--auth-text);
    letter-spacing: -0.02em;
    font-size: 26px;
}

.auth-page .login-subtitle {
    color: #475569;
    font-weight: 500;
}

.auth-page .alert {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-page .alert-success {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(220, 252, 231, 0.92);
}

.auth-page .alert-error {
    border-color: rgba(239, 68, 68, 0.26);
    background: rgba(254, 226, 226, 0.94);
}

.auth-page .form-group {
    margin-bottom: 16px;
}

.auth-page .form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #334155;
    font-weight: 700;
}

.auth-page .input-wrapper {
    position: relative;
}

.auth-page .input-icon {
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-page .form-input {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.auth-page .form-input:hover {
    border-color: rgba(22, 163, 74, 0.4);
}

.auth-page .form-input:focus {
    border-color: rgba(22, 163, 74, 0.8);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px var(--auth-focus),
        0 12px 24px rgba(22, 163, 74, 0.18);
}

.auth-page .input-wrapper:focus-within .input-icon {
    color: var(--auth-green-600);
    transform: translateY(-50%) scale(1.05);
}

.auth-page .btn-primary {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #0f7a33 100%);
    box-shadow:
        0 14px 28px rgba(22, 163, 74, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-page .btn-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
}

.auth-page .btn-inline-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.auth-page .btn-primary::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -36%;
    width: 40%;
    height: 340%;
    transform: rotate(22deg);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.46) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: authButtonSweep 3.8s ease-in-out infinite;
}

.auth-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px rgba(22, 163, 74, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.auth-page .btn-primary:active {
    transform: translateY(0);
}

.auth-page .auth-link {
    color: var(--auth-green-600);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.auth-page .auth-link:hover {
    color: #0f5f2b;
}

.auth-page .login-forgot-wrap {
    margin-top: 12px;
    text-align: center;
}

.auth-page .login-remember-row {
    margin: 4px 0 12px;
}

.auth-page .remember-email-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.auth-page .remember-email-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-page .remember-email-toggle span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-page .remember-email-toggle span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 6px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-page .remember-email-toggle:hover span::before {
    border-color: rgba(22, 163, 74, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 4px 10px rgba(22, 163, 74, 0.1);
}

.auth-page .remember-email-toggle input:checked + span::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: rgba(22, 163, 74, 0.75);
    box-shadow:
        0 6px 14px rgba(22, 163, 74, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-page .remember-email-toggle input:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-page .login-forgot-link {
    font-size: 13px;
    font-weight: 600;
}

.auth-page .auth-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--auth-border);
}

.auth-page .auth-footer-onboarding {
    text-align: center;
}

.auth-page .auth-helper-note {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--auth-muted);
}

.auth-page .features {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--auth-border);
}

.auth-page .feature {
    gap: 8px;
    padding: 0px 4px;
    background: transparent;
    border: none;
    transition: opacity 0.2s ease;
}

.auth-page .feature:hover {
    opacity: 0.8;
}

.auth-page .feature-icon {
    box-shadow: none;
}

.auth-page .form-section.active {
    animation: authFadeUp 0.32s ease both;
}

/* Dark login variant (closer to the sales/login reference) */
.auth-page-login-dark {
    --auth-surface: rgba(38, 44, 52, 0.98);
    --auth-text: #f8fafc;
    --auth-muted: #b8c0cc;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-focus: rgba(255, 107, 50, 0.18);
    background:
        radial-gradient(circle at 85% -10%, rgba(255, 106, 50, 0.08), transparent 40%),
        radial-gradient(circle at 10% 120%, rgba(255, 255, 255, 0.03), transparent 35%),
        linear-gradient(180deg, #2e343d 0%, #262c34 100%);
}

.auth-page-login-dark::before,
.auth-page-login-dark::after {
    display: none;
}

.auth-page-login-dark .login-container {
    width: min(100%, 620px);
    max-width: 620px;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    background: transparent;
}

.auth-page-login-dark .login-container::before {
    display: none;
}

.auth-page-login-dark .login-card {
    border-radius: 18px;
    padding: 26px 22px 18px;
    background: #2b313a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    max-height: none;
    overflow: visible;
    backdrop-filter: none;
}

.auth-page-login-dark .login-card::after {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-page-login-dark .login-header {
    margin-bottom: 18px;
}

.auth-page-login-dark .logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.24);
}

.auth-page-login-dark .logo-text {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 4px;
}

.auth-page-login-dark .login-subtitle {
    color: #cbd5e1;
    font-size: 14px;
}

.auth-page-login-dark .alert {
    box-shadow: none;
}

.auth-page-login-dark .form-group {
    margin-bottom: 18px;
}

.auth-page-login-dark .form-label {
    color: #f3f4f6;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-page-login-dark .input-icon {
    display: none;
}

.auth-page-login-dark .form-input {
    height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #f8fafc;
    color: #111827;
    font-size: 16px;
    box-shadow: none;
}

.auth-page-login-dark .form-input::placeholder {
    color: #6b7280;
}

.auth-page-login-dark .form-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-page-login-dark .form-input:focus {
    transform: none;
    border-color: rgba(255, 106, 50, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 106, 50, 0.14);
}

.auth-page-login-dark .login-remember-row {
    margin: 4px 0 14px;
}

.auth-page-login-dark .remember-email-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #c6cdd8;
    font-size: 13px;
    user-select: none;
}

.auth-page-login-dark .remember-email-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-page-login-dark .remember-email-toggle span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-page-login-dark .remember-email-toggle span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-page-login-dark .remember-email-toggle input:checked + span::before {
    background: linear-gradient(135deg, #ff7a44, #ff5f2e);
    border-color: rgba(255, 120, 70, 0.8);
}

.auth-page-login-dark .remember-email-toggle input:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-page-login-dark .btn-primary {
    margin-top: 0;
    min-height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7340 0%, #ff6a32 55%, #ff6128 100%);
    box-shadow:
        0 12px 24px rgba(255, 106, 50, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 17px;
    font-weight: 700;
}

.auth-page-login-dark .btn-primary::before {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.22) 50%,
            rgba(255, 255, 255, 0) 100%);
}

.auth-page-login-dark .btn-primary:hover {
    box-shadow:
        0 14px 28px rgba(255, 106, 50, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-page-login-dark .login-forgot-wrap {
    text-align: center;
    margin-top: 14px;
}

.auth-page-login-dark .login-forgot-link {
    color: #ff6a32;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-page-login-dark .login-forgot-link::before {
    content: "🔑 ";
    font-size: 13px;
}

.auth-page-login-dark .auth-link:hover {
    color: #ff8b5f;
}

.auth-page-login-dark .features,
.auth-page-login-dark .auth-footer-onboarding {
    display: none;
}

.auth-page-login-dark .auth-legal-note {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #b5becb;
    font-size: 12px;
    line-height: 1.4;
}

/* Split spooky login variant */
.auth-page-split {
    background:
        radial-gradient(circle at 10% 12%, rgba(34, 197, 94, 0.12), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(145deg, #0b1117 0%, #111827 46%, #0f172a 100%);
}

.auth-page-split .login-container {
    width: min(100%, 940px);
    max-width: 940px;
    border-radius: 24px;
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.5);
}

.auth-page-split .login-card {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: #151c25;
}

.auth-page-split .login-card::after {
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-page-split .auth-split-shell {
    display: grid;
    grid-template-columns: minmax(300px, 39%) 1fr;
    min-height: 620px;
}

.auth-page-split .auth-visual-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 30px 24px 26px;
    background:
        radial-gradient(circle at 22% 16%, rgba(34, 197, 94, 0.2), transparent 42%),
        radial-gradient(circle at 86% 84%, rgba(16, 185, 129, 0.14), transparent 40%),
        linear-gradient(165deg, #0b1320 0%, #0f1e2d 52%, #12263a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-page-split .auth-visual-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page-split .auth-visual-title {
    margin-top: 12px;
    color: #f8fafc;
    font-size: clamp(30px, 4.6vw, 42px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.auth-page-split .auth-visual-title::after {
    content: " Form";
    color: #cbd5e1;
}

.auth-page-split .auth-visual-subtitle {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
    max-width: 240px;
}

.auth-page-split .auth-visual-ghost-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.auth-page-split .auth-visual-ghosts {
    width: min(100%, 300px);
    height: auto;
    display: block;
    transform-origin: 50% 50%;
}

.auth-page-split .auth-visual-ghosts .ghost {
    transform-box: fill-box;
    transform-origin: center bottom;
}

.auth-page-split .auth-visual-ghosts .ghost-small {
    animation: authGhostFloatSmall 3.2s ease-in-out infinite;
}

.auth-page-split .auth-visual-ghosts .ghost-big {
    animation: authGhostFloatBig 3.8s ease-in-out infinite;
}

.auth-page-split .auth-visual-foot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

.auth-page-split .auth-visual-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
    flex: 0 0 auto;
}

.auth-page-split .auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 34px 32px 28px;
    background: #2b313a;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.auth-page-split .login-header {
    text-align: left;
    margin-bottom: 16px;
}

.auth-page-split .logo-icon {
    margin: 0 0 10px;
}

.auth-page-split .logo-text {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 7px;
}

.auth-page-split .login-subtitle {
    color: #d1d5db;
}

.auth-page-split .form-input {
    height: 52px;
}

.auth-page-split .btn-primary {
    min-height: 54px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #0f7a33 100%);
    box-shadow:
        0 14px 28px rgba(22, 163, 74, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-page-split .btn-primary:hover {
    box-shadow:
        0 16px 34px rgba(22, 163, 74, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-page-split .btn-primary::before {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0) 100%);
}

.auth-page-split .form-input:focus {
    border-color: rgba(22, 163, 74, 0.8);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.auth-page-split .auth-link,
.auth-page-split .login-forgot-link {
    color: #22c55e;
}

.auth-page-split .auth-link:hover,
.auth-page-split .login-forgot-link:hover {
    color: #86efac;
}

.auth-page-split .login-forgot-link::before {
    content: "\1F512 ";
    font-size: 13px;
}

.auth-page-split .remember-email-toggle input:checked + span::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: rgba(22, 163, 74, 0.78);
}

.auth-page-split .auth-footer {
    margin-top: 12px;
}

@media (max-width: 920px) {
    .auth-page-split .login-container {
        width: min(100%, 560px);
        max-width: 560px;
    }

    .auth-page-split .auth-split-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-page-split .auth-visual-panel {
        display: none;
    }

    .auth-page-split .auth-form-panel {
        padding: 28px 24px 24px;
        max-height: calc(100vh - 40px);
    }
}

@keyframes authOrbDriftA {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-15px, 10px, 0) scale(1.03);
    }
}

@keyframes authOrbDriftB {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(12px, -8px, 0) scale(1.04);
    }
}

@keyframes authBorderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes authButtonSweep {
    0% {
        left: -45%;
    }

    70%,
    100% {
        left: 135%;
    }
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authGhostFloatSmall {
    0% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }

    100% {
        transform: translateY(0) rotate(-2deg);
    }
}

@keyframes authGhostFloatBig {
    0% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-11px) rotate(-1.5deg);
    }

    100% {
        transform: translateY(0) rotate(2deg);
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 14px;
    }

    .auth-page .login-container {
        max-width: 100%;
        border-radius: 24px;
        /* Matches the 20px inner card + 4px padding perfectly on mobile */
    }

    .auth-page .login-container::before {
        inset: -10px;
    }

    .auth-page .login-card {
        border-radius: 20px;
        padding: 28px 20px;
    }

    .auth-page .logo-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .auth-page .logo-text {
        font-size: 24px;
    }
}
