/*
 * ===============================================================
 * COLLÈGE PRIVÉ STANI ZALIOHOUAN
 * Page de choix — 3 espaces de connexion
 * ===============================================================
 */

.portal-choice-body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(223, 90, 58, .20),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(255, 255, 255, .06),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #2e180f 0%,
            #4d2a1c 55%,
            #70452f 100%
        );
}

.portal-choice-shell {
    width: min(1480px, 100%);
}

.portal-choice-header {
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.portal-choice-logo {
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.portal-choice-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-choice-eyebrow {
    display: block;
    margin-top: 5px;
    color: #ff987c;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.portal-choice-header h1 {
    margin: 5px 0 5px;
    color: #fff;
    font: 700 clamp(2rem, 3.5vw, 3.15rem)/1.08 Georgia, serif;
}

.portal-choice-header p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: .94rem;
}

.portal-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.access-card {
    position: relative;
    overflow: hidden;
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 24px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 28px 75px rgba(0, 0, 0, .22);
}

.access-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: #df5a3a;
}

.access-card-teacher::before {
    background: #8a5a36;
}

.access-card-admin::before {
    background: #4a2a1c;
}

.access-card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 16px;
    background: #fff0e9;
    font-size: 1.55rem;
}

.access-card-icon.teacher-icon {
    background: #f5ece3;
}

.access-card-icon.admin-icon {
    background: #eee6e1;
}

.access-card-kicker {
    display: block;
    margin-bottom: 4px;
    color: #df5a3a;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.access-card-kicker.teacher-kicker {
    color: #8a5a36;
}

.access-card-kicker.admin-kicker {
    color: #4a2a1c;
}

.access-card h2 {
    margin: 4px 0 9px;
    color: #4a2a1c;
    font: 700 1.75rem/1.15 Georgia, serif;
}

.access-card-description {
    min-height: 72px;
    margin: 0 0 16px;
    color: #746860;
    line-height: 1.55;
    font-size: .88rem;
}

.access-form {
    margin-top: 14px;
}

.access-form input {
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.access-form input:focus {
    outline: none;
    border-color: #df5a3a;
    box-shadow: 0 0 0 3px rgba(223, 90, 58, .11);
}

.access-card-teacher .access-form input:focus {
    border-color: #8a5a36;
    box-shadow: 0 0 0 3px rgba(138, 90, 54, .10);
}

.access-card-admin .access-form input:focus {
    border-color: #4a2a1c;
    box-shadow: 0 0 0 3px rgba(74, 42, 28, .10);
}

.access-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 3px;
}

.teacher-submit {
    background: #8a5a36;
    color: #fff;
}

.teacher-submit:hover {
    background: #704626;
}

.admin-submit {
    background: #4a2a1c;
    color: #fff;
}

.admin-submit:hover {
    background: #2d180f;
}

.access-card-note {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff8f4;
    color: #7b685f;
    text-align: center;
    font-size: .73rem;
    line-height: 1.45;
}

.access-card-note.teacher-note {
    background: #f8f1eb;
}

.access-card-note.admin-note {
    background: #f4efec;
}

.portal-choice-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-top: 20px;
    padding: 0 6px;
    color: rgba(255, 255, 255, .72);
    font-size: .80rem;
}

.portal-choice-footer a {
    color: #fff;
    font-weight: 800;
}

.portal-choice-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1120px) {
    .portal-choice-body {
        align-items: flex-start;
    }

    .portal-choice-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-inline: auto;
    }

    .access-card-description {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .portal-choice-body {
        padding: 22px 12px 30px;
    }

    .access-card {
        padding: 24px 19px;
        border-radius: 20px;
    }

    .portal-choice-logo {
        width: 74px;
        height: 74px;
    }

    .portal-choice-header h1 {
        font-size: 1.95rem;
    }

    .portal-choice-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
