/* ===== Login Page Styles ===== */

.login-wrap {
    min-height: calc(100vh - 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    height: 36px;
    width: auto;
    opacity: 0.85;
}

.login-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    text-align: center;
    margin: 0 0 0.3rem;
    font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.48);
    text-align: center;
    margin: 0 0 1.75rem;
}

/* --- Messages --- */
.login-banner {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.1rem;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.45;
}
.login-banner.error   { background: rgba(255,59,48,0.07); border: 1px solid rgba(255,59,48,0.18); color: #c0392b; }
.login-banner.info    { background: rgba(0,113,227,0.07); border: 1px solid rgba(0,113,227,0.18); color: #1a5f9e; }
.login-banner.success { background: rgba(52,199,89,0.07); border: 1px solid rgba(52,199,89,0.22); color: #1c7a3c; }
.login-banner.warning { background: rgba(255,149,0,0.07); border: 1px solid rgba(255,149,0,0.2);  color: #8a5000; }

/* --- Logout toast --- */
.logout-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0.9rem 1.1rem 0.9rem 1rem;
    z-index: 9999;
    max-width: 360px;
    width: 90%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.logout-toast-text { flex: 1; }
.logout-toast-title { font-weight: 600; color: #1a7a3c; font-size: 0.9rem; }
.logout-toast-sub   { color: rgba(0,0,0,0.5); font-size: 0.82rem; margin-top: 0.15rem; }
.logout-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0,0,0,0.35);
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s;
}
.logout-toast-close:hover { color: rgba(0,0,0,0.7); }

/* --- Form fields --- */
.login-field {
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    padding: 0.68rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.88);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.login-field input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}

/* --- Submit button --- */
.login-submit {
    width: 100%;
    padding: 0.78rem;
    background: #008b0d;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 0.975rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
}
.login-submit:hover  { background: #0077ed; }
.login-submit:active { background: #006cd4; }

/* --- Divider --- */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.2rem 0;
    color: rgba(0, 0, 0, 0.28);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* --- Secondary action links --- */
.login-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-link {
    color: #0071e3;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.login-link:hover { color: #0077ed; text-decoration: underline; }

/* --- Microsoft SSO button --- */
.login-microsoft-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.72rem;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.18));
    border-radius: var(--radius-pill, 980px);
    background: #fff;
    color: var(--color-text, rgba(0, 0, 0, 0.88));
    text-decoration: none;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 400;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.login-microsoft-btn:hover {
    background: var(--color-surface, #f5f5f7);
    border-color: rgba(0, 0, 0, 0.28);
}

/* --- Responsive --- */
@media (max-width: 440px) {
    .login-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 14px;
    }
    .login-title { font-size: 1.35rem; }
}
