/* Shared styling for the whole auth flow (Login, SignUp, ForgotPassword,
   ResetPassword) — promoted out of Login.razor's original CSS-isolation file
   so all four pages look consistent instead of only Login getting the
   redesigned look. .field-label is intentionally NOT redefined here — it's
   already global in app.css and this file loads after it, so reuse wins
   over duplicating the rule. */

.auth-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--gl-text);
}

.auth-subtitle {
    color: var(--gl-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 1px solid var(--gl-border);
    background: var(--gl-card);
    color: var(--gl-text);
    box-sizing: border-box;
    font-family: inherit;
}

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

.social-btn.apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

.social-btn.apple:hover {
    background: #1a1a1a;
}

/* Black on navy needs an edge, or the button reads as a hole in the page. */
[data-theme="dark"] .social-btn.apple {
    border-color: #3a4260;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gl-text-muted);
    font-size: 0.85rem;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gl-border);
}

.field-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--gl-field-border);
    background: var(--gl-field-bg);
    color: var(--gl-text);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.field-input:focus {
    outline: 2px solid var(--gl-primary);
    outline-offset: 1px;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin: -0.5rem 0 1rem;
    color: var(--gl-primary);
    text-decoration: none;
}

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

.error-box {
    background: var(--gl-danger-bg);
    border: 1px solid var(--gl-danger-border);
    color: var(--gl-danger-text);
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: var(--gl-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.auth-btn:hover:not(:disabled) {
    background: var(--gl-primary-dark);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer-line {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--gl-text-soft);
}

.auth-footer-line a {
    color: var(--gl-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-success-icon {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
