:root {
    --color-critical: #d3448e;
    --color-high: #f12b47;
    --color-medium: #f98b16;
    --color-low: #f8dda4;
    --color-info: #f8f9fa;
}

/* ── Container & Card ─────────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #f9fafb; */
    padding: 1.5rem;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.container.whitebg {
    box-shadow: 0px 0px 100px 150px rgba(255,255,255,.75);
    background: rgba(255,255,255,.75);
}

/* ── Headers ──────────────────────────────────────────────────────────────── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Forms & Inputs ───────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-group.has-error .form-input {
    border-color: #ef4444;
}

.form-text {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.auth-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-button:hover {
    background-color: #1f2937;
    color: white;
    text-decoration: none;
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-secondary {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
}

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

/* ── Errors & Alerts ──────────────────────────────────────────────────────── */
.auth-error, .error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #b91c1c;
    text-align: center;
}

.errorlist {
    color: #ef4444;
    font-size: 0.75rem;
    margin: 0.35rem 0 0 0;
    padding-left: 0;
    list-style-type: none;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* ── Password Specifics ───────────────────────────────────────────────────── */
.password-requirements {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid #e5e7eb;
}

.password-requirements ul {
    margin: 0.25rem 0;
    padding-left: 1rem;
}

.password-requirements li {
    margin-bottom: 0.125rem;
}

/* ── Signup Specifics (Social, Dividers, Layout) ──────────────────────────── */
.row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.row .field {
    flex: 1;
}

.email-verify-group {
    display: flex;
    gap: 0.5rem;
}

.email-verify-group .form-input {
    flex: 1;
}

.verified-badge {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    background-color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.social-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.social-button:hover {
    background-color: #f9fafb;
    color: #374151;
    text-decoration: none;
    border-color: #cbd5e1;
}

.google-badge,
.microsoft-badge {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-badge svg,
.microsoft-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oauth-help {
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.auth-info-box {
    text-align: center;
    padding: 1.5rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-success-box {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* styling for severities */
.bg-critical { background-color: var(--color-critical); }
.bg-high { background-color: var(--color-high); }
.bg-medium { background-color: var(--color-medium); }
.bg-low { background-color: var(--color-low); color: #1a0f03; }
.bg-info { background-color: var(--color-info); color: #111827; }