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

:root {
    --auth-bg: #050b24;
    --auth-card: #ffffff;
    --auth-card-muted: #f5f6fb;
    --auth-text: #0f172a;
    --auth-muted: #7c879a;
    --auth-accent: #4f67ff;
    --auth-shadow: 0 20px 60px rgba(9, 13, 30, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top right, rgba(79, 103, 255, 0.35), transparent 50%), var(--auth-bg);
    color: var(--auth-text);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--auth-card);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--auth-shadow);
}

.auth-card h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
}

.auth-card p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.5;
}

.form-note {
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.25rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(79, 103, 255, 0.12);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-actions button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-actions .primary {
    background: var(--auth-accent);
    color: #fff;
    box-shadow: 0 15px 35px rgba(79, 103, 255, 0.35);
}

.auth-actions .text {
    background: transparent;
    color: var(--auth-muted);
    align-self: flex-start;
}

.alert-box {
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.12);
}

.alert-box--error {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: #b91c1c;
}

.error-messages {
    margin: 0;
    padding-left: 1rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.error-messages li {
    margin-bottom: 0.35rem;
}

@media (max-width: 840px) {
    .auth-card {
        padding: 2.5rem;
    }
}
