
/* Tes styles existants - inchangés */
:root {
    --green:        #1a7a61;
    --green-dark:   #145f4c;
    --green-light:  #e8f6f2;
    --mint:         #48c9b0;
    --navy:         #0a2342;
    --navy-light:   #0d2d56;
    --white:        #ffffff;
    --bg:           #f4f7f6;
    --text:         #1e2a24;
    --text-muted:   #6b7e77;
    --border:       #dde8e4;
    --shadow-sm:    0 2px 12px rgba(10,35,66,.07);
    --shadow-md:    0 8px 32px rgba(10,35,66,.10);
    --shadow-lg:    0 24px 60px rgba(10,35,66,.16);
    --radius:       20px;
    --radius-sm:    12px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 1px 8px rgba(10,35,66,.06);
    flex-shrink: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--green), var(--mint));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.logo-text strong {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--navy);
    letter-spacing: -.5px;
}

.logo-text span {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: .2s;
}

.btn-back:hover {
    color: var(--green);
    border-color: var(--green);
    background: var(--green-light);
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

.login-card {
    width: 100%;
    max-width: 980px;
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
    animation: slideUp .5s ease-out both;
}

@keyframes slideUp {
    from { opacity:0; transform: translateY(24px); }
    to   { opacity:1; transform: translateY(0); }
}

.panel-left {
    flex: 1;
    background: linear-gradient(150deg, var(--navy) 0%, var(--green) 100%);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.panel-left::before {
    content:'';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.panel-left::after {
    content:'';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    background: rgba(72,201,176,.08);
    border-radius: 50%;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: .88rem;
    opacity: .85;
}

.panel-brand i {
    font-size: 1rem;
    color: var(--mint);
}

.panel-body {
    position: relative;
    z-index: 1;
}

.panel-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.panel-body h2 span { color: var(--mint); }

.divider {
    width: 48px;
    height: 4px;
    background: var(--mint);
    border-radius: 4px;
    margin: 20px 0;
}

.panel-body p {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    line-height: 1.65;
    max-width: 280px;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
}

.feature-item i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    flex-shrink: 0;
}

.panel-right {
    flex: 1.1;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header { margin-bottom: 36px; }

.form-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.4px;
}

.form-header p {
    margin-top: 6px;
    font-size: .87rem;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: .2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 46px 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: .93rem;
    color: var(--text);
    transition: .2s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--green);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,122,97,.1);
}

.input-wrapper input::placeholder { color: #b0bdb8; }

.input-wrapper .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .85rem;
    pointer-events: none;
}

.input-wrapper input:focus + .input-icon { color: var(--green); }

.input-wrapper .toggle-pw {
    pointer-events: all;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .25s;
    letter-spacing: .2px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,35,66,.30);
}

.btn-submit:active { transform: translateY(0); }

.alert-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #c0392b;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .login-card { flex-direction: column; border-radius: 20px; }
    .panel-left { padding: 36px 32px; }
    .panel-left .panel-features { display: none; }
    .panel-right { padding: 36px 32px; }
    .login-wrapper { padding: 24px 4%; align-items: flex-start; }
}

@media (max-width: 480px) {
    .panel-right { padding: 28px 24px; }
    .panel-left { padding: 28px 24px; }
    .form-header h3 { font-size: 1.5rem; }
    .login-card { border-radius: 16px; }
}
