/* Login / Identity Provider Selection Page */

.login-page {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    background: #f0f0f0;
    color: #323130;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-page.dark-theme {
    background: #1e1e1e;
    color: #e8e8e8;
}

/* ── Layout ── */

#outer-container {
    display: flex;
    justify-content: center;
    align-items: safe center;
    min-height: 90vh;
    gap: 40px;
}

@media only screen and (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }
}

/* ── Provider list ── */

#provider-list-container {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    max-width: 550px;
}

#provider-list-container > h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

#provider-list-container > p {
    margin-top: 0;
    margin-bottom: 1rem;
    opacity: 0.75;
}

/* ── Provider cards ── */

.provider-container {
    border: 1px solid #d2d0ce;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dark-theme .provider-container {
    border-color: #3e3e42;
}

.provider-container:hover {
    background-color: rgba(0, 120, 212, 0.06);
}

.dark-theme .provider-container:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.provider-container.selected {
    border-color: #0078d4;
    background-color: rgba(0, 120, 212, 0.08);
}

.dark-theme .provider-container.selected {
    border-color: #4da3e8;
    background-color: rgba(77, 163, 232, 0.12);
}

.provider-container input[type="radio"] {
    margin-top: 0.65rem;
    margin-right: 1rem;
    transform: scale(1.5);
    accent-color: #0078d4;
    cursor: pointer;
}

.provider-label {
    display: flex;
    flex-direction: column;
}

.provider-label .heading-row {
    margin-bottom: 0.5em;
}

.provider-label .heading {
    font-size: 1.35rem;
    font-weight: 600;
}

.provider-label .subheading {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.provider-label .details {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.35em;
    opacity: 0.75;
}

/* ── Warning ── */

.warning {
    color: #d83b01;
}

.dark-theme .warning {
    color: #f7a93b;
}

.warning-icon {
    width: 1rem;
    height: 1rem;
    position: relative;
    top: 0.125rem;
    margin-right: 0.25rem;
}

.dark-theme .warning-icon {
    filter: invert(73%) sepia(48%) saturate(1000%) hue-rotate(350deg) brightness(103%) contrast(95%);
}

/* ── Sign in button ── */

.sign-in-button {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.45rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    background-color: #0078d4;
    color: #ffffff;
}

.sign-in-button:not(:disabled):hover {
    background-color: #106ebe;
}

.sign-in-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* ── Status / Error messages ── */

.error-message {
    background: rgba(209, 52, 56, 0.1);
    border: 1px solid #d13438;
    color: #d13438;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dark-theme .error-message {
    background: rgba(209, 52, 56, 0.15);
    color: #f1707b;
    border-color: #f1707b;
}

.status-message {
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid #0078d4;
    color: #0078d4;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dark-theme .status-message {
    background: rgba(0, 120, 212, 0.15);
    color: #4da3e8;
    border-color: #4da3e8;
}

/* ── Vertical divider (desktop only) ── */

.vertical-divider {
    width: 1px;
    height: 350px;
    background: #d2d0ce;
    flex-shrink: 0;
}

.dark-theme .vertical-divider {
    background: #3e3e42;
}
