/* Ecrans d'authentification - alignes sur la maquette Espace habitant (connexion, inscription,
   mot de passe oublie, nouveau mot de passe). Charge apres style.css. */

:root {
    --np-blue: #0054A3;
    --np-dark: #22292F;
    --np-ink: #121625;
    --np-line: #DCE1E5;
}

/* ---- Panneau gauche ---- */
.np-cover {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--np-blue) center / cover no-repeat;
}
.np-cover--signin { background-image: url('../static/image/np/auth-signin.webp'); }
.np-cover--forgot { background-image: url('../static/image/np/auth-forgot.webp'); }
.np-cover--panel  { background-image: url('../static/image/np/auth-panel.webp'); }

.np-cover--signin::before,
.np-cover--forgot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--np-blue);
    mix-blend-mode: multiply;
}
.np-cover--panel .np-cover-copy { top: clamp(100px, 20vh, 152px); }
.np-cover-logo {
    position: absolute;
    left: 48px;
    top: 48px;
    height: 48px;
    width: auto;
}
.np-cover-copy {
    position: absolute;
    left: 48px;
    right: 48px;
    top: clamp(120px, 24vh, 192px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.np-cover-copy h1 {
    margin: 0;
    color: #fff;
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}
.np-cover-copy p {
    margin: 0;
    max-width: 400px;
    color: rgba(255, 255, 255, .88);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.3;
}

/* ---- Colonne formulaire ---- */
.np-main {
    max-width: 524px;
}
.np-title {
    margin: 0;
    color: var(--np-ink);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 48px;
}
.np-subtitle {
    margin: 8px 0 0;
    color: rgba(16, 24, 32, .88);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
}
.np-head { margin-bottom: 32px; }

.np-field { margin-bottom: 17px; }
.np-field .loginLabel,
.np-label {
    display: block;
    margin-bottom: 8px;
    color: var(--np-dark);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
}
.np-input {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: 8px;
}
.np-input:focus-within {
    border-color: var(--np-blue);
    box-shadow: 0 0 0 2px rgba(0, 84, 163, .15);
}
.np-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--np-dark);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-size: 16px;
}
.np-toggle {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--np-blue);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.np-toggle:hover { text-decoration: underline; }

.np-hint {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.np-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 48px;
    border: 0;
    border-radius: 8px;
    background: var(--np-blue);
    color: #fff;
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}
.np-btn:hover { background: #004a8f; color: #fff; }
.np-btn:disabled, .np-btn.wait { opacity: .7; cursor: wait; }

.np-link {
    color: var(--np-blue);
    font-family: 'AvenirNextLTPro-Demi', 'Avenir Next LT Pro', sans-serif;
    font-weight: 600;
    text-decoration: none;
}
.np-link:hover { text-decoration: underline; }
.np-row-between { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 17px; font-size: 13px; }
.np-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--np-dark); }
.np-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.np-check { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; font-size: 14px; color: var(--np-dark); }
.np-check input { width: 16px; height: 16px; accent-color: var(--np-blue); }

/* Message de retour (envoi de mail, erreurs) */
.np-main .alert { border-radius: 8px; font-size: 14px; }
.np-main .errortext, .np-main .notetext { display: block; margin-bottom: 16px; font-size: 14px; }

@media (max-width: 767.98px) {
    .np-cover { min-height: 220px; }
    .np-cover-logo { left: 24px; top: 24px; height: 36px; }
    .np-cover-copy { left: 24px; right: 24px; top: 84px; }
    .np-cover-copy p { display: none; }
    .np-title { font-size: 26px; line-height: 36px; }
    .np-two { grid-template-columns: 1fr; }
}
