﻿/* ============================================================================
 * login.css — styles for the Login page (moved out of Login.cshtml).
 * The per-org background IMAGE stays inline in the cshtml (it needs the Razor
 * value @org.BackgroundUrl); the default token background lives here.
 * ============================================================================ */

.demo-section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--theme-login-background);
    background-size: cover;
    background-position: center;
}

.login-content {
    width: 30vw;
    margin: 0 auto;
    padding: 3em;
    background-color: var(--surface-card, #101A2D);
    color: var(--text-primary, #E7EEF8);
    border: 1px solid var(--border-default, rgba(148, 163, 184, .12));
    border-radius: var(--radius-card, 12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

.rate-limit-alert {
    width: 30vw;
    margin: 0 auto 1em auto;
}

.validation-summary-errors ul {
    padding-left: 5px;
    list-style: none;
    color: var(--danger, #FF5C6C);
    font-size: 13px;
}

/* floating theme switcher, top-right (uses the global .icon-btn frame) */
.login-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
}

/* ── Azure AD login — Option 3: divider + full-width button ── */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary, rgba(231, 238, 248, 0.4));
    font-size: 12px;
    margin: 1.4em 0 1.2em;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--border-default, rgba(148, 163, 184, .15));
    }

    .login-divider span {
        padding: 0 12px;
    }

.btn-azure-ad {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--surface-raised, #1F2937);
    color: var(--text-primary, #E7EEF8);
    border: 1px solid var(--border-strong, rgba(148, 163, 184, .25));
    border-radius: 6px;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

    .btn-azure-ad:hover {
        background-color: color-mix(in srgb, var(--surface-raised, #1F2937) 90%, var(--text-primary, #E7EEF8));
        border-color: var(--border-strong, rgba(148, 163, 184, .4));
        color: var(--text-primary, #E7EEF8);
    }

    .btn-azure-ad svg {
        flex-shrink: 0;
    }
