/*
 * login.css — Page de connexion
 * Layout : deux panneaux (visuel gauche + formulaire droit)
 * Harmonisé avec main.css, trips.css, home.css
 */

/* ═══════════════════════════════════════════
   LAYOUT DEUX PANNEAUX
═══════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 70px); /* hauteur navbar */
    display: flex;
    align-items: stretch;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100%;
}

/* ── Panneau gauche — visuel ────────────── */
.login-visual {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(10,22,40,.88) 0%, rgba(13,59,140,.80) 100%),
        url('../images/russia-login.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Cercle décoratif */
.login-visual::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-visual::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.09);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-visual-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.login-logo {
    width: 140px;
    height: auto;
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.login-quote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0;
}

.login-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: .82rem;
    font-style: normal;
    font-family: var(--font-body);
    color: rgba(255,255,255,.5);
    letter-spacing: .05em;
}

/* ── Panneau droit — formulaire ─────────── */
.login-form-panel {
    width: 460px;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.login-form-inner {
    width: 100%;
    max-width: 360px;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHIE FORMULAIRE
═══════════════════════════════════════════ */
.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: .3rem;
}

.login-subtitle {
    font-size: .9rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   CHAMPS AVEC ICÔNE
   .form-label, .input-icon-wrapper, .input-icon : voir main.css
═══════════════════════════════════════════ */
.form-control-icon {
    padding-left: 2.6rem !important;
    padding-right: 2.8rem;
    height: 48px;
}

/* Bouton afficher/masquer mot de passe */
.toggle-password {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: .2rem;
    font-size: .9rem;
    transition: color .2s;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--blue-500);
}


/* ═══════════════════════════════════════════
   BOUTON DE CONNEXION — socle dans main.css
═══════════════════════════════════════════ */
.btn-login {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    margin-top: .5rem;
}

/* ═══════════════════════════════════════════
   LIENS BAS DE FORMULAIRE
═══════════════════════════════════════════ */
.login-footer-links {
    margin-top: 1.8rem;
    text-align: center;
}

.login-footer-links p {
    font-size: .88rem;
    color: var(--text-mid);
    margin-bottom: .6rem;
}

.login-footer-links a {
    color: var(--blue-500);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.login-footer-links a:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

.login-back {
    font-size: .82rem;
    font-weight: 400 !important;
    color: var(--text-soft) !important;
}

.login-back:hover {
    color: var(--text-mid) !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .login-visual {
        display: none; /* panneau visuel masqué sur mobile */
    }

    .login-form-panel {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.6rem;
    }

    .login-form-panel {
        padding: 2rem 1.25rem;
    }
}
