/* connexion.css - Adapté au style existant */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    width: 100%;
}

/* ===== LEFT SIDE ===== */
.left-side {
    background: #D8A97A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.logo-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo {
    max-width: 50%;
    height: auto;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.tagline {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Éléments décoratifs */
.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(67, 30, 18, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

/* ===== RIGHT SIDE ===== */
.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: white;
}

.form-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    color: #D8A97A;
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.alert-error {
    background-color: #fee;
    border: 2px solid #D8A97A;
    color: #431E12;
}

.alert-success {
    background-color: #f0f8f0;
    border: 2px solid #D8A97A;
    color: #431E12;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #431E12;
}

/* Form */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #431E12;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #D8A97A;
    pointer-events: none;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 10px 10px 10px 42px;
    margin-bottom: 10px;
    border: 2px solid #D8A97A;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: #431E12;
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 30, 18, 0.15);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.toggle-password:hover {
    transform: scale(1.1);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: #D8A97A;
    transition: color 0.2s ease;
}

.toggle-password.active .eye-icon {
    color: #431E12;
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #431E12;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D8A97A;
}

.options a,
.forgot-link {
    color: #D8A97A;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.options a:hover,
.forgot-link:hover {
    color: #431E12;
    text-decoration: underline;
}

/* Button */
.btn {
    background-color: #431E12;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background-color: #D8A97A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 30, 18, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #D8A97A;
}

.divider span {
    padding: 0 15px;
    color: #666;
}

/* Register link */
.register,
.register-link {
    margin-top: 20px;
    color: #555;
    text-align: center;
    font-size: 14px;
}

.register a,
.link-primary {
    color: #D8A97A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register a:hover,
.link-primary:hover {
    color: #431E12;
    text-decoration: underline;
}

/* Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 13px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    body {
        min-height: auto;
    }

    .container {
        flex-direction: column;
    }

    .left-side {
        padding: 40px 30px;
        min-height: 300px;
    }

    .logo {
        max-width: 200px;
    }

    .tagline {
        font-size: 20px;
    }

    .description {
        font-size: 14px;
    }

    .right-side {
        padding: 40px 30px;
    }

    h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 600px) {
    .left-side {
        padding: 30px 20px;
        min-height: 250px;
    }

    .logo {
        max-width: 150px;
    }

    .tagline {
        font-size: 18px;
    }

    .right-side {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.6em;
    }

    .subtitle {
        font-size: 14px;
    }

    input[type="text"], 
    input[type="password"] {
        padding: 10px 10px 10px 40px;
        font-size: 14px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
    }

    .circle-3 {
        display: none;
    }
}

@media (max-width: 400px) {
    .left-side {
        padding: 20px 15px;
        min-height: 200px;
    }

    .logo {
        max-width: 120px;
    }

    .tagline {
        font-size: 16px;
    }

    .description {
        font-size: 13px;
    }

    .right-side {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.4em;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}