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

body {
    font-family: 'Manrope', sans-serif !important;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1000px 520px at -10% -20%, rgba(17, 138, 178, 0.22), transparent 70%),
        radial-gradient(900px 480px at 115% -30%, rgba(10, 46, 75, 0.18), transparent 70%),
        #f2f6fb !important;
    color: #12263a !important;
}

:root {
    --panel-border: #dbe6f1;
    --text-strong: #16324a;
    --text-muted: #5c7489;
    --shadow-soft: 0 22px 55px rgba(14, 35, 56, 0.12);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(440px, 94vw);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 30px 24px 24px;
}

.auth-card,
.auth-card * {
    box-sizing: border-box;
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    letter-spacing: -0.03em;
    color: #0f3552;
}

.auth-subtitle {
    margin: 10px 0 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

#login-form {
    display: grid;
    gap: 12px;
    margin: 0;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--panel-border) !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    font-size: 0.98rem;
    color: var(--text-strong) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(16, 38, 58, 0.05);
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"]:focus {
    outline: none;
    border-color: #2f7bab !important;
    box-shadow: 0 0 0 4px rgba(47, 123, 171, 0.12);
}

.auth-card button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

#login-form button[type="submit"],
#verify-otp {
    color: #fff !important;
    background: linear-gradient(135deg, #0f79b5, #165a86) !important;
    box-shadow: 0 10px 20px rgba(22, 90, 134, 0.22);
}

#magic-link-button,
#passkey-login-button,
#register-magic-link-button {
    color: #234766 !important;
    background: #f7fbff !important;
    border: 1px solid #d9e6f1 !important;
}

.auth-card button:hover {
    transform: translateY(-1px);
}

.auth-divider {
    margin: 16px 0 10px !important;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

#google-signin-section {
    margin-top: 6px;
}

#google-signin {
    min-height: 46px !important;
}

.register-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #1d5f8f;
    text-decoration: none;
    font-weight: 700;
}

.register-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 14px;
    text-align: center;
    min-height: 22px;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 14px;
    }

    .auth-card {
        border-radius: 16px;
        padding: 22px 16px 18px;
    }
}
