/**
 * TLU SSO frontend styles
 */

.tlu-sso-login-wrapper {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

/* Microsoft SSO button — blue with Windows-grid logo */
.tlu-sso-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.tlu-sso-login-button svg {
    flex-shrink: 0;
}

.tlu-sso-login-button span {
    color: #ffffff;
}

.tlu-sso-login-button:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.tlu-sso-login-button:focus {
    background: #1d4ed8;
    color: #ffffff !important;
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
    text-decoration: none !important;
}

.tlu-sso-login-button:active {
    background: #1e40af;
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.tlu-sso-onboarding-wrapper {
    max-width: 520px;
    margin: 32px auto;
    padding: 24px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #ffffff;
}

.tlu-sso-onboarding-wrapper label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

.tlu-sso-onboarding-wrapper input[type="text"],
.tlu-sso-onboarding-wrapper input[type="tel"] {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.tlu-sso-onboarding-wrapper input[type="submit"] {
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: #0078d4;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.tlu-sso-onboarding-wrapper input[type="submit"]:hover,
.tlu-sso-onboarding-wrapper input[type="submit"]:focus {
    background: #005a9e;
}

.tlu-sso-error,
.tlu-sso-success {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 4px;
}

.tlu-sso-error {
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    color: #8a2424;
}

.tlu-sso-success {
    border-left: 4px solid #00a32a;
    background: #edfaef;
    color: #0a5f1b;
}

/* ── WP Login page ──────────────────────────────────────────── */

.tlu-sso-wp-login {
    margin: 0 0 20px;
}

/* On the WP login page the button fills the column width */
.tlu-sso-wp-login .tlu-sso-login-button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.tlu-sso-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    color: #646970;
    font-size: 12px;
}

.tlu-sso-divider::before,
.tlu-sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dcdcde;
}

/* ── Login-page SSO error notice ────────────────────────────── */

.tlu-sso-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.tlu-sso-notice-error {
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    color: #8a2424;
}