:root {
    --auth-bg: #d9d8e8;
    --auth-card: #fbfbff;
    --auth-ink: #1f1f28;
    --auth-muted: #5f6272;
    --auth-purple: #6b5ed9;
    --auth-border: rgba(35, 36, 54, 0.15);
}

.auth-shell {
    font-family: "Manrope", sans-serif;
    color: var(--auth-ink);
    min-height: 100vh;
    width: 100%;
    padding: 10px;
    background: radial-gradient(circle at 14% 0%, #e4e1f5 0, transparent 42%), var(--auth-bg);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.3;
}

.auth-bg-orb {
    position: absolute;
    width: 340px;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.5;
}

.auth-bg-orb.a {
    left: -80px;
    top: 150px;
    background: #b9c5f9;
}

.auth-bg-orb.b {
    right: -100px;
    top: 80px;
    background: #b3dcc9;
}

.auth-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    padding: 12px 14px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #272838;
    font-family: "Fraunces", serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.auth-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.auth-nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f6f5e8;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    padding: 5px;
}

.auth-nav-pill a {
    text-decoration: none;
    color: #333648;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.auth-nav-pill a:hover {
    background: #e2e0f6;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 26px 60px rgba(22, 24, 39, 0.10);
}

.auth-card h1 {
    margin: 0 0 6px;
    font-family: "Fraunces", serif;
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--auth-ink);
}

.auth-card .subtitle {
    margin: 0 0 28px;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    color: var(--auth-ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    border-color: var(--auth-purple);
    box-shadow: 0 0 0 3px rgba(107, 94, 217, 0.12);
}

.auth-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 999px;
    border: none;
    background: #262a43;
    color: #f5f6ff;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease;
    margin-top: 6px;
}

.auth-btn:hover {
    opacity: 0.92;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn.google {
    background: #fff;
    color: #333648;
    border: 1px solid var(--auth-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn.google:hover {
    background: #f8f8ff;
}

.auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--auth-muted);
    font-size: 0.85rem;
}

.auth-sep::before,
.auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-footer a {
    color: var(--auth-purple);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-container {
    background: #fde8e8;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    padding: 10px 14px;
    color: #b91c1c;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: none;
}

.error-container:not(:empty) {
    display: block;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 18px;
    }
    .auth-nav-pill {
        display: none;
    }
    .auth-top {
        justify-content: center;
    }
}
