/* עיצוב מסך בחירת ספק ומצב חשבון מחובר, בצבעי המכללה. עודכן: 01.10.2026. */
:root {
    --iac-purple: #6D02E4;
    --iac-dark-purple: #623295;
    --iac-yellow: #F6CD03;
    --iac-paper: #FFFFFF;
    --iac-background: #F1F0F0;
    --iac-ink: #29222f;
    --iac-muted: #6e6576;
    --iac-line: #e3dce8;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(109, 2, 228, .09), transparent 28rem),
        linear-gradient(135deg, #f8f7f9 0%, var(--iac-background) 100%);
    color: var(--iac-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(100%, 510px);
    overflow: hidden;
    background: var(--iac-paper);
    border: 1px solid rgba(98, 50, 149, .14);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(58, 35, 76, .14);
}

.auth-header {
    padding: 30px 34px 25px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fbf9fd 100%);
    border-top: 7px solid var(--iac-purple);
}

.college-logo {
    display: block;
    width: 142px;
    height: 142px;
    margin: -8px auto 8px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.brand-rule {
    width: 58px;
    height: 4px;
    margin: 3px auto 15px;
    border-radius: 999px;
    background: var(--iac-yellow);
}

h1 {
    margin: 0;
    color: var(--iac-dark-purple);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.25;
}

.lead {
    margin: 10px 0 0;
    color: var(--iac-muted);
    font-size: .98rem;
}

.reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 34px 0;
    padding: 12px 14px;
    color: #594900;
    background: #fff9df;
    border: 1px solid #f0dc73;
    border-right: 4px solid var(--iac-yellow);
    border-radius: 10px;
    line-height: 1.55;
}

.reason-icon {
    display: grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: #b28a00;
    font-weight: 800;
}

.flash-message {
    margin: 18px 34px 0;
    padding: 12px 14px;
    border: 1px solid #ead9ef;
    border-right: 4px solid var(--iac-purple);
    border-radius: 10px;
    color: var(--iac-dark-purple);
    background: #f8f1fb;
    line-height: 1.5;
}

.flash-message.danger,
.flash-message.error,
.flash-message.warning {
    color: #741b2b;
    background: #fff0f2;
    border-color: #f1cbd2;
    border-right-color: #b4233a;
}

.flash-message.success {
    color: #17632b;
    background: #e8f6e9;
    border-color: #bfe1c2;
    border-right-color: #2e7d32;
}

.provider-list {
    display: grid;
    gap: 12px;
    padding: 26px 34px 30px;
}

.signed-in-status {
    margin: 26px 34px 30px;
    padding: 22px;
    text-align: center;
    background: #fbf9fd;
    border: 1px solid var(--iac-line);
    border-radius: 14px;
}

.signed-in-status h2 {
    margin: 0 0 16px;
    color: var(--iac-dark-purple);
    font-size: 1.08rem;
}

.signed-in-name {
    margin: 0;
    color: var(--iac-ink);
    font-size: 1.14rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.signed-in-provider,
.signed-in-email {
    margin: 9px 0 0;
    color: var(--iac-muted);
}

.signed-in-provider strong {
    color: var(--iac-dark-purple);
}

.signed-in-email {
    font-size: .9rem;
}

.logout-form {
    margin-top: 22px;
}

.logout-button {
    min-width: 145px;
    min-height: 44px;
    padding: 10px 20px;
    color: #fff;
    background: var(--iac-purple);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.logout-button:hover,
.logout-button:focus-visible {
    background: var(--iac-dark-purple);
}

.logout-button:focus-visible {
    outline: 3px solid rgba(109, 2, 228, .25);
    outline-offset: 3px;
}

.provider-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 13px 16px;
    color: var(--iac-ink);
    text-decoration: none;
    border: 1px solid var(--iac-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(62, 35, 79, .05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.provider-option:hover,
.provider-option:focus-visible {
    color: var(--iac-ink);
    border-color: var(--iac-purple);
    box-shadow: 0 8px 20px rgba(109, 2, 228, .14);
    transform: translateY(-1px);
}

.provider-option:focus-visible {
    outline: 3px solid rgba(109, 2, 228, .25);
    outline-offset: 2px;
}

.provider-option.azure {
    border-right: 5px solid var(--iac-dark-purple);
}

.provider-option.google {
    border-right: 5px solid #4285f4;
}

.provider-option.disabled,
.provider-option.disabled:hover {
    color: #807987;
    background: #f7f6f8;
    border-color: #e5e1e8;
    box-shadow: none;
    transform: none;
}

.provider-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8f6fb;
}

.provider-icon svg {
    width: 29px;
    height: 29px;
}

.provider-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.provider-copy strong {
    color: var(--iac-dark-purple);
    font-size: 1rem;
}

.provider-copy small {
    color: var(--iac-muted);
    font-size: .82rem;
}

.provider-arrow {
    color: var(--iac-purple);
    font-size: 1.35rem;
    font-weight: 700;
}

.support-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 8px;
    padding: 18px 24px 22px;
    color: var(--iac-muted);
    background: #fbfafc;
    border-top: 1px solid var(--iac-line);
    font-size: .82rem;
    text-align: center;
}

.support-footer p {
    flex-basis: 100%;
    margin: 0 0 1px;
    color: var(--iac-dark-purple);
    font-weight: 700;
}

.support-footer a {
    color: var(--iac-purple);
    font-weight: 700;
}

.support-footer a:hover,
.support-footer a:focus-visible {
    color: var(--iac-dark-purple);
}

@media (max-width: 520px) {
    .auth-page {
        padding: 12px 10px;
    }

    .auth-header {
        padding: 24px 20px 21px;
    }

    .college-logo {
        width: 118px;
        height: 118px;
    }

    .reason {
        margin-inline: 20px;
    }

    .provider-list {
        padding: 22px 20px 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .provider-option {
        transition: none;
    }
}
