
/* =========================================
   LOGIN PAGE STYLES (Wrapper & Container)
   ========================================= */





/* Left Side */
.login-left {
    flex: 1.2;
    position: relative;
    padding: 60px 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ll-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(20, 10, 4, 0.90) 0%, rgba(43, 22, 12, 0.82) 100%), url('../assets/auth_bg.jpeg') center/cover !important;
    z-index: 1;
}

.ll-content {
    position: relative;
    z-index: 2;
}

.ll-header {
    margin-bottom: 50px;
}

.ll-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.ll-header h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ll-header .highlight-italic {
    font-family: 'Great Vibes', cursive;
    color: var(--primary);
    font-size: 3.5rem;
    font-weight: normal;
}

.ll-header p {
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ll-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ll-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.llf-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(201, 138, 88, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.llf-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.llf-text {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Right Side (Form) */
.login-right {
    flex: 1;
    background: #fff;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lr-form-card {
    width: 100%;
    max-width: 400px;
}

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

.lr-user-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.lr-header h2 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-group-login {
    margin-bottom: 20px;
}

.form-group-login label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: #fafafa;
    transition: 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 138, 88, 0.1);
}

.input-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
}

.form-actions-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    color: #555;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 19px;
    width: 19px;
    background-color: #f8fafc;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    transition: 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f1f5f9;
    border-color: #64748b;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-container.has-error .checkmark {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-dark);
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login,
.btn-register,
.lr-form button[type="submit"] {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%) !important;
    color: #24170f !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-login:hover,
.btn-register:hover,
.lr-form button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.55) !important;
}

.social-login-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.social-login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #888;
    font-size: 0.85rem;
}

.social-login-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-sso {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: 0.3s;
}

.btn-sso:hover {
    background: #f5f5f5;
}

.btn-sso img {
    width: 16px;
    height: 16px;
}

.btn-facebook i {
    color: #1877F2;
    font-size: 1.1rem;
}

.btn-apple i {
    font-size: 1.1rem;
}

.lr-footer {
    text-align: center;
    background: #fcfbf9;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.lr-footer a {
    color: var(--primary-dark);
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.lr-footer a i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.lr-footer a:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
    
    .login-left, .login-right {
        padding: 40px 30px;
    }
}
@media (max-width: 576px) {
    .social-login-buttons {
        flex-direction: column;
    }
    .ll-header h2 {
        font-size: 2.2rem;
    }
    .ll-header .highlight-italic {
        font-size: 2.8rem;
    }
}

/* =========================================
   REGISTER PAGE STYLES (Extends Login Styles)
   ========================================= */

.highlight-playfair-yellow {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

.form-row-register {
    display: flex;
    gap: 15px;
}

.form-row-register .form-group-login {
    flex: 1;
}

/* Phone Input Group with Country Code */
.phone-input-group {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    transition: 0.3s;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 138, 88, 0.1);
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.country-select i {
    font-size: 0.75rem;
    color: #888;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: transparent;
}

.phone-input-group input:focus {
    outline: none;
}

@media (max-width: 576px) {
    .form-row-register {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   FEATURES BAR (Barre d'avantages)
   ========================================= */
.features-bar {
    background-color: #fff;
    padding: 35px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.fb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3cm;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2.2rem;
    color: var(--primary);
}

.feature-text h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .fb-container {
        flex-wrap: wrap;
    }
    .feature-item {
        width: 45%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .feature-item {
        width: 100%;
    }
}
