/* public/styles/login-definima.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: white;
    overflow-x: hidden;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: white;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* --- Cercles décoratifs en fond --- */
.bg-circle {
    position: absolute;
    border-radius: 9999px;
    filter: blur(127px);
    z-index: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, #E52F7E 0%, rgba(229, 47, 126, 0) 100%);
}

.bg-circle-1 {
    width: 52vw;
    height: 52vw;
    max-width: 999px;
    max-height: 999px;
    left: 58%;
    top: 53%;
    opacity: 0.60;
}

.bg-circle-2 {
    width: 55vw;
    height: 55vw;
    max-width: 1069px;
    max-height: 1069px;
    left: 12%;
    top: -29%;
    opacity: 0.30;
}

.bg-circle-3 {
    width: 51vw;
    height: 51vw;
    max-width: 993px;
    max-height: 993px;
    left: 59%;
    top: -56%;
    opacity: 0.30;
}

/* --- Panneaux Gauche (Image) et Droite (Formulaire) --- */
.login-image-panel {
    flex-basis: 50%;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 886px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
}

.image-overlay h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-overlay p {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-form-panel {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 1;
}

/* --- Contenu du formulaire --- */
.login-form-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.login-header {
    text-align: center;
    width: 100%;
}

.login-logo {
    margin-bottom: 24px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    background: white;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    box-sizing: border-box;
    color: #1F2937;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #EA0069;
    box-shadow: 0 0 0 3px rgba(234, 0, 105, 0.1);
}

.form-input:hover {
    border-color: #D1D5DB;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6B7280;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #EA0069;
    border-color: #EA0069;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-weight: 500;
}

.forgot-password-link {
    color: #EA0069;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #C7005C;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #EA0069 0%, #C7005C 100%);
    border-radius: 12px;
    border: none;
    color: white;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(234, 0, 105, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(234, 0, 105, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

/* --- Liens supplémentaires --- */
.login-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.login-divider {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0;
    color: #9CA3AF;
    font-size: 14px;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
}

.login-divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.social-login {
    width: 100%;
}

.btn-social {
    width: 100%;
    height: 48px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    color: #374151;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-social:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google {
    color: #374151;
}

.signup-text {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    text-align: center;
}

.signup-link {
    color: #EA0069;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #C7005C;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .login-image-panel {
        display: none;
    }
    .login-form-panel {
        flex-basis: 100%;
        padding: 20px;
    }
    .login-form-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .login-title {
        font-size: 28px;
    }
    .login-subtitle {
        font-size: 14px;
    }
    .form-input {
        height: 48px;
        font-size: 16px;
    }
    .btn-login {
        height: 48px;
        font-size: 16px;
    }
    .image-overlay h2 {
        font-size: 24px;
    }
    .image-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-form-panel {
        padding: 16px;
    }
    .login-form-container {
        gap: 24px;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

