
/* ── Annule le padding-top de common.css sur <main>
      (pas de navbar fixe sur cette page)        ── */
.login-panel-right {
    padding-top: 48px;
    min-height: unset;
}

/* ── Layout split-screen ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   PANNEAU GAUCHE — décoratif sombre
══════════════════════════════════════════ */
.login-panel-left {
    width: 45%;
    flex-shrink: 0;
    background-color: var(--gray-900);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs */
.login-panel-left::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(204,31,31,.08);
    pointer-events: none;
}

.login-panel-left::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(204,31,31,.05);
    pointer-events: none;
}

/* Logo */
.login-logo {
    position: relative;
    z-index: 1;
}

.login-logo img {
    height: 100px;
    filter: brightness(0) invert(1);
    opacity: .85;
}

/* Bloc texte central */
.login-panel-copy {
    position: relative;
    z-index: 1;
}

.login-panel-copy .login-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.login-panel-copy .login-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.login-panel-copy .login-label::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.login-panel-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.login-panel-copy h1 em {
    font-style: italic;
    color: var(--red);
}

.login-panel-copy p {
    font-size: 0.88rem;
    color: rgba(255,255,255,.42);
    line-height: 1.8;
    max-width: 320px;
}

/* Citation bas de panneau */
.login-quote {
    position: relative;
    z-index: 1;
    border-left: 3px solid var(--red);
    padding: 14px 18px;
    background: rgba(255,255,255,.04);
    border-radius: 0 4px 4px 0;
}

.login-quote p {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    margin: 0 0 8px;
}

.login-quote cite {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--red);
    font-style: normal;
}

/* ══════════════════════════════════════════
   PANNEAU DROIT — formulaire
══════════════════════════════════════════ */
.login-panel-right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-form-box {
    width: 100%;
    max-width: 400px;
}

/* En-tête formulaire */
.login-form-header {
    margin-bottom: 36px;
}

.login-form-header .login-form-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.login-form-header .login-form-eyebrow::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--red);
}

.login-form-header .login-form-eyebrow::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--red);
}

.login-form-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.login-form-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* ── Champs ── */
.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.login-field .field-inner {
    position: relative;
}

.login-field .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.login-field input {
    width: 100%;
    border: 1px solid var(--gray-100);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-700);
    background: #fafafa;
    padding: 11px 14px 11px 40px;
    transition: border-color .2s, box-shadow .2s;
}

.login-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(204,31,31,.1);
    background: #fff;
    outline: none;
}

.login-field input::placeholder {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Oeil mot de passe */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .2s;
}

.toggle-password:hover {
    color: var(--gray-700);
}

/* Options sous le mot de passe */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    margin-top: -4px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-remember input[type="checkbox"] {
    accent-color: var(--red);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.login-remember label {
    font-size: 0.875rem;
    color: var(--gray-500);
    cursor: pointer;
}

.login-forgot {
    font-size: 0.875rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.login-forgot:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* ── Bouton connexion ── */
.btn-login {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-login:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

/* ── Message d'erreur ── */
.login-error {
    background: rgba(204,31,31,.07);
    border: 1px solid rgba(204,31,31,.2);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-error svg {
    flex-shrink: 0;
    color: var(--red);
}

.login-error span {
    font-size: 0.875rem;
    color: var(--red);
    font-weight: 500;
}

/* ── Badge securite ── */
.login-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--gray-300);
}

.login-security-badge svg {
    color: #22c55e;
}

/* ── Retour site ── */
.login-back-site {
    text-align: center;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.login-back-site a {
    font-size: 0.875rem;
    color: var(--gray-300);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.login-back-site a:hover {
    color: var(--gray-700);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .login-panel-left {
        display: none;
    }

    .login-panel-right {
        padding: 40px 24px;
    }
}


