.auth-page {
    --auth-primary: #1e377e;
    --auth-on-primary: #ffffff;
    --auth-surface: #f7f9fb;
    --auth-card: #ffffff;
    --auth-container: #eceef0;
    --auth-container-high: #e6e8ea;
    --auth-on-surface: #191c1e;
    --auth-on-surface-variant: #444651;
    --auth-outline-variant: #c5c6d2;
    --auth-secondary-fixed: #d9e2ff;
    --auth-tertiary-fixed: #ffdbd1;
    --auth-primary-fixed: #dce1ff;

    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--auth-surface);
    color: var(--auth-on-surface);
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.auth-page, .auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }

/* Atmospheric blurred blobs */
.auth-page .auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.auth-page .auth-blob { position: absolute; border-radius: 9999px; filter: blur(64px); }
.auth-page .auth-blob--1 { top: -6rem; left: -6rem; width: 24rem; height: 24rem; background: var(--auth-secondary-fixed); opacity: .30; }
.auth-page .auth-blob--2 { top: 50%; right: -6rem; width: 20rem; height: 20rem; background: var(--auth-tertiary-fixed); opacity: .20; }
.auth-page .auth-blob--3 { bottom: -6rem; left: 25%; width: 18rem; height: 18rem; background: var(--auth-primary-fixed); opacity: .30; }

.auth-page .auth-main { position: relative; z-index: 10; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-page .auth-grid { width: 100%; max-width: 1100px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

/* Left welcome panel (desktop only) */
.auth-page .auth-welcome { display: none; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.auth-page .auth-mascot { width: 20rem; height: auto; animation: auth-float 6s ease-in-out infinite; }
.auth-page .auth-welcome h1 { color: var(--auth-primary); font-size: 48px; line-height: 1.1; font-weight: 700; margin: 0 0 8px; }
.auth-page .auth-welcome p { color: var(--auth-on-surface-variant); font-size: 18px; margin: 0; }

@keyframes auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Card */
.auth-page .auth-card-wrap { width: 100%; display: flex; justify-content: center; }
.auth-page .auth-card { width: 100%; max-width: 460px; background: var(--auth-card); border: 1px solid #e0e3e5; border-radius: 2rem; box-shadow: 0 10px 30px rgba(30,55,126,.08); padding: 40px; display: flex; flex-direction: column; }
.auth-page .auth-mascot--mobile { width: 8rem; height: 8rem; margin: 0 auto 24px; display: block; animation: auth-float 6s ease-in-out infinite; }
.auth-page .auth-card h2 { color: var(--auth-primary); font-size: 32px; font-weight: 700; margin: 0 0 4px; }
.auth-page .auth-card .auth-subtitle { color: var(--auth-on-surface-variant); font-size: 16px; margin: 0 0 32px; }

/* Google button (inert) */
.auth-page .auth-google { width: 100%; padding: 16px 24px; background: var(--auth-container); border: 1px solid var(--auth-outline-variant); border-radius: 9999px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--auth-on-surface); cursor: pointer; transition: background .2s, transform .2s; }
.auth-page .auth-google:hover { background: var(--auth-container-high); transform: scale(1.02); }
.auth-page .auth-google svg { width: 20px; height: 20px; }

.auth-page .auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-page .auth-divider .auth-line { flex: 1; height: 1px; background: var(--auth-outline-variant); }
.auth-page .auth-divider span { font-size: 12px; color: var(--auth-on-surface-variant); }

/* Form */
.auth-page .auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.auth-page .auth-field label { font-size: 14px; font-weight: 600; margin-left: 4px; }
.auth-page .auth-field input[type=email], .auth-page .auth-field input[type=password] { width: 100%; padding: 12px 16px; border: 1px solid var(--auth-outline-variant); border-radius: 1rem; background: var(--auth-surface); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.auth-page .auth-field input:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 1px var(--auth-primary); }

.auth-page .auth-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.auth-page .auth-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: var(--auth-on-surface-variant); }
.auth-page .auth-link { font-size: 12px; color: var(--auth-primary); text-decoration: none; }
.auth-page .auth-link:hover { text-decoration: underline; }

.auth-page .auth-submit { width: 100%; padding: 16px; margin-top: 8px; background: var(--auth-primary); color: var(--auth-on-primary); border: none; border-radius: 9999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .2s, transform .1s; }
.auth-page .auth-submit:hover { opacity: .9; }
.auth-page .auth-submit:active { transform: scale(.97); }

.auth-page .auth-error { background: #ffdad6; color: #93000a; border-radius: 1rem; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.auth-page .auth-footer { margin-top: 32px; text-align: center; font-size: 16px; color: var(--auth-on-surface-variant); }
.auth-page .auth-footer a { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.auth-page .auth-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .auth-page .auth-main { padding: 24px 12px; }
    .auth-page .auth-card { padding: 28px 20px; border-radius: 1.5rem; }
}

@media (min-width: 1024px) {
    .auth-page .auth-grid { grid-template-columns: 1fr 1fr; }
    .auth-page .auth-welcome { display: flex; }
    .auth-page .auth-mascot--mobile { display: none; }
}
