/* ==========================================================
   BVPAQUIZ — Page de connexion
   Complément à mobile-game.css
   ========================================================== */

body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px 12px;
    display: grid;
    place-items: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #17352e;
    background:
        radial-gradient(circle at 10% 8%, rgba(255,255,255,.95), transparent 27%),
        radial-gradient(circle at 88% 10%, rgba(177,146,255,.20), transparent 24%),
        linear-gradient(150deg, #dff4ff, #e8f8ef 55%, #fff0e4);
}

.auth-card {
    width: min(100%, 620px);
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid rgba(19,133,106,.14);
    border-radius: 30px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 55px rgba(31,77,68,.18);
}

.auth-logo-wrap {
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.auth-logo {
    display: block;
    width: min(210px, 54vw);
    height: auto;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(25,41,80,.18);
}

.auth-card .eyebrow {
    margin: 0 0 12px;
    color: #13856a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-align: center;
}

.auth-card h1 {
    margin: 0;
    color: #17352e;
    font-size: clamp(2rem, 7vw, 3.35rem);
    line-height: 1.03;
    text-align: center;
}

.auth-card .intro {
    max-width: 520px;
    margin: 15px auto 22px;
    color: #5d716c;
    line-height: 1.55;
    text-align: center;
}

.auth-card .alert {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 15px;
    font-weight: 800;
}

.auth-card .alert.success {
    color: #126942;
    background: #dbf5e6;
    border: 1px solid #a7dec0;
}

.auth-card .alert.error {
    color: #a33126;
    background: #ffe2de;
    border: 1px solid #efaaa3;
}

.debug-link {
    display: block;
    margin: 0 0 15px;
    padding: 12px 14px;
    border-radius: 13px;
    color: #fff;
    background: #7355a8;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.telegram-login-zone {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0;
    padding: 20px;
    border: 1px solid #dceaf4;
    border-radius: 22px;
    background: linear-gradient(145deg, #f8fcff, #edf7ff);
    text-align: center;
}

.telegram-title {
    margin: 0;
    color: #174f8c;
    font-size: 18px;
    font-weight: 900;
}

.telegram-note {
    max-width: 470px;
    margin: 0;
    color: #627772;
    font-size: 13px;
    line-height: 1.45;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #72817c;
    font-size: 13px;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe6e2;
}

.auth-separator span {
    white-space: nowrap;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 2px;
    color: #274b43;
    font-weight: 900;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 2px solid #dce8e3;
    border-radius: 14px;
    color: #17352e;
    background: #fff;
    font: inherit;
}

.auth-form input:focus {
    border-color: #13856a;
    outline: 3px solid rgba(19,133,106,.13);
}

.auth-form button {
    min-height: 52px;
    margin-top: 6px;
    padding: 13px 18px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #159174, #11745f);
    box-shadow: 0 10px 24px rgba(19,133,106,.24);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.auth-form button:hover,
.auth-form button:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.privacy {
    margin: 15px 0 0;
    color: #73827d;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 520px) {
    body.auth-page {
        padding: 10px 7px;
        align-items: start;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: 23px;
    }

    .auth-logo {
        width: min(180px, 56vw);
    }

    .telegram-login-zone {
        padding: 16px 10px;
    }
}
