/* ============================================================
   DZCounter - Authentification
   login.php / register.php
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 15px;
}

/* ------------------------------------------------------------
   Conteneur
   ------------------------------------------------------------ */

.auth-container {
    width: 100%;
    max-width: 440px;
}

/* ------------------------------------------------------------
   Carte
   ------------------------------------------------------------ */

.auth-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

/* ------------------------------------------------------------
   Logo
   ------------------------------------------------------------ */

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo a {
    color: #1769aa;
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
}

.auth-logo span {
    display: block;
    margin-top: 6px;

    color: #6b7280;
    font-size: 14px;
}

/* ------------------------------------------------------------
   Titres
   ------------------------------------------------------------ */

.auth-card h1 {
    margin: 0 0 8px;

    text-align: center;

    font-size: 25px;
    font-weight: 700;

    color: #111827;
}

.auth-subtitle {
    margin: 0 0 28px;

    text-align: center;

    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Messages d'erreur
   ------------------------------------------------------------ */

.auth-errors {
    margin-bottom: 20px;
    padding: 12px 15px;

    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;

    color: #be123c;
    font-size: 14px;
}

.auth-errors p {
    margin: 4px 0;
}

/* ------------------------------------------------------------
   Formulaire
   ------------------------------------------------------------ */

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;

    height: 46px;

    padding: 0 13px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;

    color: #111827;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1769aa;

    box-shadow:
        0 0 0 3px rgba(23, 105, 170, 0.12);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* ------------------------------------------------------------
   reCAPTCHA
   ------------------------------------------------------------ */

.recaptcha-wrapper {
    margin: 22px 0;

    display: flex;
    justify-content: center;
}

/*
   Le widget Google fait environ 304px de largeur.
   On évite qu'il déborde sur les petits écrans.
*/

.g-recaptcha {
    max-width: 100%;
}

/* ------------------------------------------------------------
   Bouton
   ------------------------------------------------------------ */

.auth-button {
    width: 100%;

    height: 48px;

    border: 0;
    border-radius: 8px;

    background: #1769aa;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.auth-button:hover {
    background: #12598f;
}

.auth-button:active {
    transform: translateY(1px);
}

/* ------------------------------------------------------------
   Liens
   ------------------------------------------------------------ */

.auth-footer {
    margin-top: 25px;

    text-align: center;

    color: #6b7280;
    font-size: 14px;
}

.auth-footer a {
    color: #1769aa;

    font-weight: 600;

    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Séparateur
   ------------------------------------------------------------ */

.auth-divider {
    height: 1px;

    margin: 25px 0;

    background: #e5e7eb;
}

/* ------------------------------------------------------------
   RTL arabe
   ------------------------------------------------------------ */

html[dir="rtl"] body {
    font-family:
        Tahoma,
        Arial,
        sans-serif;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group select {
    text-align: right;
}

html[dir="rtl"] .auth-card {
    direction: rtl;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 480px) {

    body {
        padding: 15px 10px;
    }

    .auth-card {
        padding: 25px 20px;

        border-radius: 12px;
    }

    .auth-logo a {
        font-size: 27px;
    }

    .auth-card h1 {
        font-size: 22px;
    }

    /*
       Adaptation reCAPTCHA sur petits écrans
    */

    .recaptcha-wrapper {
        overflow: hidden;
    }

}
.auth-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-forgot a {
    color: #1769AA;
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot a:hover {
    text-decoration: underline;
}