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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.banner-section {
    flex: 1;
    background: linear-gradient(135deg, rgba(236, 121, 20, 0.8), rgba(176, 134, 97, 0.8));
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    animation: changeImage 10s  ease-in-out infinite;
}

@keyframes changeImage {
    0%, 45% {
        background-image: url('/images/illustrations/qrcodescan.png');
    }
    50%, 95% {
        background-image: url('/images/illustrations/restoscan.png');
    }
    100% {
        background-image: url('/images/illustrations/qrcodescan.png');
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 120px auto;
    color: white;
    padding: 40px;
    max-width: 500px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 40px;
    min-height: 100vh;
}

.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d86e00, #ff8f39);
    border-radius: 0 0 4px 4px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #d86e00;
    box-shadow: 0 0 0 3px rgba(216, 110, 0, 0.1);
}

/* Styles pour les boutons de connexion sociale */
.social-login {
    margin-bottom: 30px;
}

.social-login p {
    text-align: center;
    color: #64748b;
    margin-bottom: 15px;
    font-size: 14px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #e5e7eb;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.social-btn.apple:hover {
    border-color: #000;
    color: #000;
}

.social-btn i {
    font-size: 16px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d86e00;
    cursor: pointer;
}

.remember label {
    margin: 0;
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #d86e00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #c05f00;
    text-decoration: none;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d86e00, #ff8f39);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 110, 0, 0.3);
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 110, 0, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: linear-gradient(135deg, #cccccc, #999999);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.login-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.register-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.register-link p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

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

.register-link a:hover {
    color: #c05f00;
    text-decoration: none;
}

.alert {
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
    padding: 16px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .banner-section {
        display: none;
    }

    .form-section {
        flex: 1;
        padding: 20px;
        min-height: auto;
        align-items: flex-start;
        padding-top: 30px;
    }

    .register-card {
        padding: 30px 25px;
        border-radius: 15px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .login-header {
        margin-bottom: 30px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .social-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .social-btn {
        padding: 10px;
        font-size: 13px;
    }

    .social-btn span {
        display: none;
    }

    .social-btn i {
        font-size: 18px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .forgot-link {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .register-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .form-section {
        padding: 15px;
        padding-top: 20px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    select {
        padding: 10px 12px;
        font-size: 14px;
        /* Évite le zoom sur iOS */
    }

    .login-button {
        padding: 14px;
        font-size: 15px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .social-btn span {
        display: inline;
    }
}

/* Amélioration pour très petits écrans */
@media (max-width: 360px) {
    .form-section {
        padding: 10px;
        padding-top: 15px;
    }

    .register-card {
        padding: 20px 15px;
    }
}