/* ============================================================
   TSTOCK — Page de connexion (split layout)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef0f3;
    min-height: 100vh;
}

/* ---------- Wrapper & Card ---------- */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 540px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    animation: fadeInUp .45s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Côté gauche ---------- */
.auth-left {
    flex: 1.1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
}

.auth-left-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 32px 32px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(4px);
    width: fit-content;
    letter-spacing: .04em;
}

.auth-left-content {}

.auth-tagline {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.auth-subtitle {
    color: rgba(255,255,255,.78);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-feature-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: .78rem;
    padding: 5px 13px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ---------- Côté droit ---------- */
.auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-img {
    height: 72px;
    object-fit: contain;
}

/* ---------- Formulaire ---------- */
.auth-form { width: 100%; }

.auth-field { margin-bottom: 18px; }

.auth-label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #dde0e5;
    border-radius: 9px;
    font-size: .93rem;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
    border-color: #f0770f;
    box-shadow: 0 0 0 3px rgba(240,119,15,.14);
    background: #fff;
}

.auth-input::placeholder { color: #bbb; }

.auth-input-group {
    position: relative;
    display: flex;
}

.auth-input-group .auth-input {
    padding-right: 46px;
}

.auth-eye-btn {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 46px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color .15s;
}
.auth-eye-btn:hover { color: #f0770f; }

/* ---------- Ligne remember / oublié ---------- */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    color: #555;
    cursor: pointer;
}

.auth-checkbox {
    width: 15px; height: 15px;
    accent-color: #f0770f;
    cursor: pointer;
}

.auth-forgot {
    font-size: .83rem;
    color: #f0770f;
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot:hover { color: #d4660a; text-decoration: underline; }

/* ---------- Bouton ---------- */
.auth-btn-submit {
    width: 100%;
    height: 48px;
    background: #257a09;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .97rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}
.auth-btn-submit:hover {
    background: #1d5e07;
    box-shadow: 0 6px 18px rgba(37,122,9,.32);
    transform: translateY(-1px);
}
.auth-btn-submit:active { transform: translateY(0); }

/* ---------- Copyright ---------- */
.auth-copyright {
    text-align: center;
    font-size: .76rem;
    color: #aaa;
    margin-top: auto;
    padding-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 660px) {
    .auth-left  { display: none; }
    .auth-right { padding: 32px 24px; border-radius: 18px; }
    .auth-card  { max-width: 420px; border-radius: 18px; }
}
