/* SalaireADC - Style commun aux pages d'authentification
   (login, register, forgot_password, reset_password) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: #1e293b;
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    margin: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}
.login-logo img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}
.login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.login-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cbd5e1;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #3b82f6;
}
.hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}
.login-btn {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.login-btn:hover { background: #2563eb; }
.login-btn:active { background: #1d4ed8; }
.error-msg {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}
.success-msg {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}
.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.switch-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}
.switch-link a:hover { text-decoration: underline; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    line-height: 1;
}
.pw-toggle:hover { color: #e2e8f0; }
@media (max-width: 420px) {
    .login-container { padding: 32px 20px; }
}
