:root {
    --auth-bg: #f8fafc;
    --auth-navy: #0b2c5f;
    --auth-btn: #1a8fe0;
    --auth-btn-hover: #4db2f5;
    --auth-link: #1276c2;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--auth-bg);
    color: #1e293b;
    font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-brand img {
    display: block;
    height: 4rem;
    width: auto;
    max-width: 16rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    margin-top: 2rem;
    padding: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-title {
    margin: 0;
    color: var(--auth-navy);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
}

.auth-lead {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-field + .auth-field,
.auth-banner + .auth-field,
.auth-choices,
.auth-choices + .auth-field {
    margin-top: 1rem;
}

.auth-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-input {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1f2937;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.auth-check,
.auth-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
}

.auth-check {
    margin-top: 1rem;
}

.auth-choice + .auth-choice {
    margin-top: 0.5rem;
}

.auth-check input,
.auth-choice input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    accent-color: var(--auth-link);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--auth-link);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-navy);
}

.auth-btn {
    border: 0;
    border-radius: 9999px;
    background: var(--auth-btn);
    color: #fff;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
}

.auth-btn:hover {
    background: var(--auth-btn-hover);
}

.auth-banner {
    margin-top: 1rem;
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--auth-navy);
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-banner--amber {
    background: #fffbeb;
}

.auth-banner--sky {
    background: #f0f9ff;
}

.auth-error {
    display: block;
    margin-top: 0.5rem;
    color: #ef4444;
    font-size: 0.875rem;
}

.auth-alert {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.875rem;
}

.auth-alert--ok {
    background: #ecfdf5;
    color: #065f46;
}

.auth-alert--info {
    background: #fffbeb;
    color: var(--auth-navy);
}

.auth-legal {
    color: #4b5563;
    text-decoration: underline;
}
