/* Shared styles for account pages (login, forgot-password, etc.) */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem 2rem;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.login-logo {
    height: 44px;
    width: auto;
}

.login-heading {
    text-align: center;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.login-subtext {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
}

/* Status message alert — modern card style */
.status-message-alert {
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem;
}

.status-message-alert.mud-alert-filled-error {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.status-message-alert.mud-alert-filled-error .mud-alert-icon,
.status-message-alert.mud-alert-filled-error .mud-icon-root {
    color: #dc2626 !important;
}

.status-message-alert.mud-alert-filled-success {
    background-color: #16a34a !important;
    color: #fff !important;
}

.status-message-alert.mud-alert-filled-success .mud-alert-icon,
.status-message-alert.mud-alert-filled-success .mud-icon-root {
    color: #fff !important;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Round the MudTextField outlined borders */
.login-fields .mud-input-outlined .mud-input-outlined-border {
    border-radius: 10px;
}

/* Pill-shaped submit button */
.login-submit-btn {
    border-radius: 9999px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 10px 24px !important;
    margin-top: 0.5rem;
    background-color: #1e293b !important;
    color: #fff !important;
}

.login-submit-btn:hover {
    background-color: #334155 !important;
}

/* "or" divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0 1rem;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.login-divider-text {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: lowercase;
}

/* Hyperlink-style links */
.login-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.login-link {
    font-size: 0.8rem;
    color: #1976d2;
    text-decoration: none;
}

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

/* ═══════════════════════════════════════════════════════
   Access denied (/account/access-denied)
   ═══════════════════════════════════════════════════════ */
/* This page renders under the unauthenticated layout, which has no nav and no
   log-out control, so it carries its own way out. Everything below matches the
   login card it sits in — same pill buttons, same slate palette. */

/* Which account was refused. A quiet chip rather than an alert: arriving here
   is usually a wrong-account mistake, not an error to be alarmed about. */
.access-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #475569;
    word-break: break-word;
}

.access-account strong {
    font-weight: 600;
    color: #1e293b;
}

.access-account .mud-icon-root {
    font-size: 1rem !important;
    color: #94a3b8 !important;
    flex-shrink: 0;
}

.access-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.access-logout-form {
    margin: 0;
}

/* Shaped like .login-submit-btn, but a plain button and anchor rather than a
   MudButton: one of the two has to be a real submit inside a POST form, and the
   pair have to look identical when they stack. */
.access-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 9999px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.access-btn .mud-icon-root {
    font-size: 1.125rem !important;
}

.access-btn-primary {
    background-color: #1e293b;
    border: 1px solid #1e293b;
    color: #fff;
}

.access-btn-primary:hover {
    background-color: #334155;
    border-color: #334155;
    color: #fff;
}

.access-btn-secondary {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.access-btn-secondary:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

.access-btn:focus-visible {
    outline: 2px solid #9f2241;
    outline-offset: 2px;
}

/* Who to ask. Last thing on the card because it is the last resort. */
.access-note {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
}
