/* =============================== */
/* AUTH PAGES                     */
/* =============================== */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 40px 35px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-card h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
}

/* =============================== */
/* AUTH FORM FIX (LAYOUT STABLE)  */
/* =============================== */

/* Structure stable des <p> */
.auth-form-inner p {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    text-align: left;
}

.auth-form-inner p label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-form-inner p input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    box-sizing: border-box;
}

/* ---------- HELP TEXT (username + password2) ---------- */

.auth-form-inner .helptext {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;

    /* état replié : ne prend presque pas de place */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.25s ease,
        opacity 0.25s ease;
}

/* Afficher le helptext du champ focus */
.auth-form-inner p:has(input:focus) .helptext {
    max-height: 100px;
    opacity: 1;
}

/* ---------- RÈGLES DU MOT DE PASSE (UL sous password1) ---------- */

/* Le <ul> est directement après le <p> de password1 */
.auth-form-inner > ul {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #6b7280;

    /* état replié : ne prend presque pas de place */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.25s ease,
        opacity 0.25s ease;
}

/* Quand password1 est focus → on déplie le <ul> et il pousse password2 */
.auth-form-inner p:has(#id_password1:focus) + ul {
    max-height: 200px;   /* assez pour toutes les règles */
    opacity: 1;
}

/* Wrapper pour le positionnement relatif des règles */
.auth-form-inner {
    width: 100%;
}


/* =============================== */
/* LOGO NOTFLOW                   */
/* =============================== */

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-notflow {
    display: block;
    height: auto;
    width: 220px;
}

.logo-notflow.white .text-main,
.logo-notflow.white .circle-o {
    fill: rgb(0, 0, 0);
}

.logo-notflow.black .text-main,
.logo-notflow.black .circle-o {
    fill: white;
}

.logo-notflow .text-main {
    font-size: 48px;
    font-weight: 600;
}

.circle-o {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseCircle 1.8s infinite ease-in-out;
}

@keyframes pulseCircle {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}