/* ═══════════════════════════════════════
   TafTaf Market — Auth Pages CSS
   Style futuriste, simple, confiance
═══════════════════════════════════════ */

.connexion-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(245,158,11,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16,185,129,.06) 0%, transparent 50%),
        var(--surface);
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    box-shadow: var(--sh-md);
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    animation: fadeUp .4s ease both;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    margin-bottom: 24px;
    text-decoration: none;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 22px;
}

/* Alertes */
.auth-alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}
.auth-alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.auth-alert-success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

/* Formulaire */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-row {
    display: flex;
    gap: 12px;
}
.auth-row .auth-field { flex: 1; }

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 5px;
    letter-spacing: .2px;
}

.auth-field input,
.auth-field select {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--border-md);
    border-radius: 8px;
    padding: 0 13px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,.1);
    background: var(--white);
}

.auth-field input::placeholder {
    color: var(--text-muted);
}

.auth-password-wrap {
    position: relative;
}
.auth-password-wrap input {
    padding-right: 44px;
}
.auth-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    opacity: .6;
    transition: opacity .2s;
}
.auth-toggle-pw:hover { opacity: 1; }

/* Options */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 4px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-sub);
    cursor: pointer;
}
.auth-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--amber);
    cursor: pointer;
}

.auth-forgot {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--amber-dark);
    transition: color .2s;
}
.auth-forgot:hover { color: var(--amber); }

/* Submit */
.auth-submit {
    width: 100%;
    height: 46px;
    background: var(--amber);
    color: white;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: 4px;
}
.auth-submit:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.auth-submit:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
}
.auth-switch a {
    color: var(--amber-dark);
    font-weight: 700;
    transition: color .2s;
}
.auth-switch a:hover { color: var(--amber); }

.auth-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .2s;
}
.auth-back:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 22px;
        border-radius: 14px;
    }
    .auth-title { font-size: 20px; }
    .auth-row { flex-direction: column; gap: 14px; }
    .auth-options { flex-direction: column; gap: 8px; align-items: flex-start; }
}
