/* ===========================
   AUTH PAGES — auth.css
   =========================== */

/* Reset inputs globalement */
input, button, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Page */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    font-family: 'Inter', sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px 16px;
    margin: 0 auto;
}

/* Back link */
.auth-back {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 0.82rem;
    margin-bottom: 18px;
    transition: color 0.2s;
}
.auth-back:hover { color: #ccc; }

/* Card */
.auth-box {
    background: #151515;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 44px 36px 40px;
    text-align: center;
    animation: fadeUp 0.45s ease-out;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* Logo */
.auth-logo { margin-bottom: 24px; }
.auth-logo img { max-height: 68px; }

/* Title */
.auth-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 6px;
}

/* Subtitle */
.auth-subtitle {
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 30px;
    letter-spacing: 0.2px;
}

/* ---- Form ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Label — simple, lisible */
.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #777;
    padding-left: 2px;
}

/* Input wrapper (icône positionnée dedans) */
.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 16px;
    font-size: 15px;
    color: #3a3a3a;
    pointer-events: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Input */
.form-group input {
    display: block;
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: #161616;
    border: 1px solid #272727;
    border-radius: 10px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #3d3d3d;
    font-size: 0.85rem;
    font-style: italic;
}

.form-group input:focus {
    background: #1b1b1b;
    border-color: #484848;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.form-group:focus-within label {
    color: #bbb;
}

.form-group:focus-within .input-icon {
    color: #666;
}

/* Bouton — reset total de .cta-button */
.auth-btn {
    -webkit-appearance: none;
    appearance: none;
    display: block !important;
    width: 100% !important;
    padding: 13px !important;
    margin-top: 4px;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: opacity 0.2s, transform 0.15s;
}
.auth-btn:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
}

/* Switch */
.auth-switch {
    margin-top: 22px;
    font-size: 0.82rem;
    color: #555;
}
.auth-switch a {
    color: #aaa;
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { color: #fff; }

/* Alerts */
.alert {
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 0.85rem;
}
.alert.error   { background: rgba(231,76,60,0.10);  border: 1px solid #c0392b; color: #e74c3c; }
.alert.success { background: rgba(46,204,113,0.10); border: 1px solid #27ae60; color: #2ecc71; }

/* Responsive */
@media (max-width: 480px) {
    .auth-box { padding: 36px 20px; }
    .auth-title { font-size: 1.5rem; }
}
