@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #c2410c;
    --bg: #fffaf5;
    --text: #1c1917;
    --card: rgba(255, 255, 255, 0.85);
    --border: rgba(255, 255, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, hsla(28,100%,74%,0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(15,100%,70%,0.15) 0px, transparent 50%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.login-card {
    background: var(--card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.login-card h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #fecaca;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #44403c;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--brand); }

.btn-submit {
    width: 100%;
    background: var(--brand);
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.btn-submit:hover { background: #9a3412; }

/* --- CORRECTION OEIL LOGIN --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-wrapper input {
    padding-right: 45px !important;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); /* Centre parfaitement l'icône */
    cursor: pointer;
    color: #9ca3af; /* Gris fixe */
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.2s ease;
}
.toggle-password:hover {
    color: var(--brand); /* Utilise la bonne variable */
}