}

/* =========================================================
   Page publique /activer-mon-compte — site GIP public.
   Carte centrée, sans dépendance à extranet shell.
   ========================================================= */
.account-activation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    font-family: var(--main-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #0f172a;
}
.account-activation__panel {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 36px 36px 28px;
}
.account-activation__header {
    text-align: center;
    margin-bottom: 24px;
}
.account-activation__logo {
    color: #dc2626;
    margin-bottom: 8px;
}
.account-activation__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.account-activation__title {
    margin: 4px 0 0 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.account-activation__intro {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 18px 0;
}
.account-activation__identity {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}
.account-activation__identity-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.account-activation__identity-value {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}
.account-activation__form { margin: 0; }
.account-activation__field { margin-bottom: 18px; }
.account-activation__field > label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.account-activation__input-wrap {
    position: relative;
}
.account-activation__input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.account-activation__input-wrap input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.account-activation__reveal {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.account-activation__reveal:hover { color: #475569; background: #f1f5f9; }
.account-activation__reveal .ac-eye-off { display: none; }
.account-activation__input-wrap.is-revealed .ac-eye { display: none; }
.account-activation__input-wrap.is-revealed .ac-eye-off { display: block; }

/* Widget de force du mot de passe */
.account-activation__strength {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.account-activation__strength-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.account-activation__strength-bar > span {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}
.account-activation__strength[data-level="1"] .account-activation__strength-bar > span:nth-child(-n+1) { background: #ef4444; }
.account-activation__strength[data-level="2"] .account-activation__strength-bar > span:nth-child(-n+2) { background: #f97316; }
.account-activation__strength[data-level="3"] .account-activation__strength-bar > span:nth-child(-n+3) { background: #f59e0b; }
.account-activation__strength[data-level="4"] .account-activation__strength-bar > span:nth-child(-n+4) { background: #84cc16; }
.account-activation__strength[data-level="5"] .account-activation__strength-bar > span:nth-child(-n+5) { background: #16a34a; }
.account-activation__strength-label {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #475569;
}
.account-activation__strength-label span { font-weight: 700; }
.account-activation__strength-checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-activation__strength-checks li {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}
.account-activation__strength-checks li::before {
    content: "○";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    color: #cbd5e1;
}
.account-activation__strength-checks li.is-ok { color: #047857; }
.account-activation__strength-checks li.is-ok::before { content: "✓"; color: #16a34a; }
.account-activation__strength-note {
    margin: 8px 0 0 0;
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.account-activation__match-feedback {
    margin: 6px 0 0 0;
    min-height: 16px;
    font-size: 12px;
    font-weight: 600;
}
.account-activation__match-feedback.is-ok { color: #16a34a; }
.account-activation__match-feedback.is-ko { color: #ef4444; }

.account-activation__submit {
    margin-top: 8px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.05s ease;
}
.account-activation__submit:hover { background: #b91c1c; }
.account-activation__submit:active { transform: translateY(1px); }
.account-activation__submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.account-activation__expiry {
    margin: 14px 0 0 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.account-activation__notice {
    text-align: center;
    padding: 8px 0 12px;
    color: #475569;
}
.account-activation__notice svg {
    color: #f59e0b;
    margin-bottom: 8px;
}
.account-activation__notice h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #0f172a;
}
.account-activation__notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.account-activation__flashes {
    margin-bottom: 18px;
}
.account-activation__flash {
    margin: 0 0 6px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.account-activation__flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.account-activation__flash--info {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.account-activation__footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.account-activation__footer small {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

@media (max-width: 500px) {
    .account-activation__panel { padding: 28px 22px 22px; }
    .account-activation__title { font-size: 19px; }
}

/* Variante "Activation réussie" — surcharge la pill notice par défaut (ambre) */
.account-activation__notice--success svg {
    color: #16a34a;
}
.account-activation__notice--success h2 {
    color: #166534;
}
