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

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: var(--mud-typography-default-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 {
    margin-top: 0;
    text-align: center;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary, #1e293b);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* 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 — color comes from MudButton Color.Primary */
.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;
}

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

.login-divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--mud-palette-divider, #e2e8f0);
}

.login-divider-text {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary, #94a3b8);
    text-transform: lowercase;
}

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

.login-link {
    font-size: 0.8rem;
    color: var(--mud-palette-primary, #1976d2);
    text-decoration: none;
}

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

/* --- Responsive: Tablet (481px–768px) --- */
@media (max-width: 768px) {
    .login-card {
        max-width: 90vw;
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* --- Responsive: Mobile (≤480px) --- */
@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 1.5rem 1rem 1rem;
    }

    .login-logo {
        height: 36px;
    }

    .login-heading {
        font-size: 1.15rem;
    }

    /* 48px touch targets */
    .login-fields .mud-input-outlined .mud-input-slot {
        min-height: 3rem;
        font-size: 1rem;
    }

    .login-submit-btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }

    .login-links {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .login-link {
        display: flex;
        min-height: 2.75rem;
        align-items: center;
        justify-content: center;
        font-size: 0.9375rem;
    }

    .login-divider {
        display: none;
    }
}
