/* Page — Accéder à mon espace (espace élève) */
.ps-access-page {
    padding: 32px 0 72px;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(243, 222, 7, .08), transparent 55%),
        linear-gradient(160deg, var(--ps-charcoal-deep) 0%, var(--ps-charcoal) 55%, var(--ps-dark-soft) 100%);
}

.ps-access-card {
    width: min(100%, 920px);
    margin: 0 auto;
    background: var(--ps-surface);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-lg);
    border: 1px solid var(--ps-border);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.ps-access-aside {
    background: linear-gradient(165deg, var(--ps-charcoal) 0%, var(--ps-charcoal-deep) 100%);
    color: #e2e8f0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.ps-access-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(243, 222, 7, .12), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(243, 222, 7, .06), transparent 55%);
    pointer-events: none;
}

.ps-access-aside > * { position: relative; z-index: 1; }

.ps-access-brand img {
    height: 72px;
    width: auto;
    max-width: 72px;
    filter: brightness(0) invert(1);
    animation: ps-logo-pulse 2.8s ease-in-out infinite;
    transform-origin: center center;
}

.ps-access-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ps-primary);
}

.ps-access-aside h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
}

.ps-access-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.ps-access-steps {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ps-access-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

.ps-access-steps span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(243, 222, 7, .14);
    color: var(--ps-primary);
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-access-aside-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    color: #94a3b8;
}

.ps-access-aside-foot a {
    color: var(--ps-primary);
    font-weight: 700;
    text-decoration: none;
}

.ps-access-main {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ps-access-main h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ps-text);
}

.ps-access-main > p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ps-muted);
}

.ps-access-field { margin-bottom: 18px; }

.ps-access-field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ps-muted);
    margin-bottom: 8px;
}

.ps-access-field input {
    width: 100%;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    background: var(--ps-surface-alt);
    color: var(--ps-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ps-access-field input::placeholder { color: #5c6770; }

.ps-access-field input:focus {
    border-color: rgba(243, 222, 7, .45);
    box-shadow: var(--ps-glow);
}

.ps-access-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--ps-primary);
    color: var(--ps-primary-ink);
    font-size: 14px;
    font-weight: 800;
    padding: 13px 16px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.ps-access-submit:hover {
    background: var(--ps-yellow-light);
    box-shadow: var(--ps-glow);
    transform: translateY(-1px);
}

.ps-access-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ps-access-alert.is-success {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .28);
    color: #86efac;
}

.ps-access-alert.is-error {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #fca5a5;
}

.ps-access-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--ps-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    color: var(--ps-muted);
}

.ps-access-foot a {
    color: var(--ps-text);
    font-weight: 600;
    text-decoration: none;
}

.ps-access-foot a:hover { color: var(--ps-primary); }

@media (max-width: 820px) {
    .ps-access-card { grid-template-columns: 1fr; }
    .ps-access-aside { padding: 24px 20px; }
    .ps-access-main { padding: 24px 20px 28px; }
}
