@media screen and (max-width:2000px){

/* Carte principale "Déjà client" */
.login-box{
    background:#f8fbff;
    border:1px solid #d7e6f7;
    border-radius:10px;
    padding:18px 16px;
    margin:15px 0;
}

/* Titre "Déjà client" */
.login-box h3{
    margin:0 0 14px;
    font-size:24px;
    font-weight:700;
    color:#1c1c1c;
}

/* Formulaire colonne, largeur contenue */
.login-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:620px;
}

/* Lignes label + input */
.form-row{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.form-row label{
    font-size:15px;
    font-weight:600;
    color:#334;
}

/* Champs moins hauts + largeur maîtrisée */
.form-row input{
    width:100%;
    padding:10px 12px;
    border:1px solid #bfd2e8;
    border-radius:8px;
    background:#fff;
    font-size:15px;
    color:#222;
    transition:border-color .2s ease, box-shadow .2s ease;
    box-sizing:border-box;
}

.form-row input:focus{
    border-color:#1f6fd6;
    outline:none;
    box-shadow:0 0 0 3px rgba(31,111,214,.15);
}

/* Lien "Mot de passe oublié ?" */
.form-links{
    text-align:right;
    margin-top:-2px;
    max-width:620px;
}

.form-links a{
    color:#0d4fa8;
    text-decoration:none;
    font-weight:600;
}

.form-links a:hover{
    text-decoration:underline;
    color:#083a7d;
}

/* Bloc d’erreur plus fin et aligné avec le formulaire */
.login-error{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
    padding:10px 12px;
    max-width:620px;
    background:linear-gradient(180deg,#fff5f5,#ffe9e9);
    border:1px solid #f3b4b4;
    border-left:4px solid #d93025;
    border-radius:8px;
    color:#a1261c;
    font-size:14px;
    line-height:1.35;
    box-shadow:0 2px 8px rgba(217,48,37,.08);
}

.login-error-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    border-radius:50%;
    background:#d93025;
    color:#fff;
    font-weight:700;
    font-size:13px;
}

.login-error-text{
    font-weight:600;
}

/* Bouton S’identifier plus compact */
.btn-login{
    margin-top:4px;
    width:100%;
    max-width:620px;
    padding:11px 16px;
    border:none;
    border-radius:8px;
    background:linear-gradient(180deg,#f28c00,#e26f00);
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(226,111,0,.22);
    transition:all .2s ease;
}

.btn-login:hover{
    background:linear-gradient(180deg,#ff9b18,#cf6500);
    transform:translateY(-1px);
}

.btn-login:focus{
    outline:3px solid rgba(242,140,0,.20);
    outline-offset:2px;
}

/* Carte "Nouveau client ?" alignée visuellement */
.new-client-box{
    background:#f8fbff;
    border:1px solid #d7e6f7;
    border-radius:10px;
    padding:18px 16px;
    margin:15px 0;
    max-width:620px;
}

.new-client-box h3{
    margin:0 0 10px;
    font-size:24px;
    font-weight:700;
    color:#1c1c1c;
}

.new-client-box p{
    margin:0 0 8px;
    color:#444;
    line-height:1.5;
    font-size:14px;
}

/* Bouton inscription calé sur la largeur */
.btn-register{
    display:inline-block;
    margin-top:8px;
    padding:11px 16px;
    background:linear-gradient(180deg,#1f6fd6,#0d4fa8);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(13,79,168,.20);
    transition:all .2s ease;
}

.btn-register:hover{
    background:linear-gradient(180deg,#277cf0,#0c4694);
    color:#fff;
    transform:translateY(-1px);
}

.btn-register:focus{
    outline:3px solid rgba(31,111,214,.25);
    outline-offset:2px;
}

/* Anciennes règles .compte/.connexion peuvent être conservées
   si utilisées ailleurs, mais ne touchent plus les nouveaux blocs */
}