/*============================================================
 * AMÉLIORATION PAGE DE CONNEXION USER
 * Sans altérer la fonctionnalité ni le format design existant
 * Conserve toutes les classes et structures Blade
 *============================================================*/

/*=================== Fond de la page avec effet glassmorphism ==================*/
.login.account {
    background: linear-gradient(135deg, 
        hsl(var(--base)) 0%, 
        hsl(var(--base-d-200)) 50%, 
        hsl(var(--base-two)) 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

.login.account::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    animation: floatShape1 20s ease-in-out infinite;
}

.login.account::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    animation: floatShape2 18s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -50px) scale(1.15); }
}

/*=================== Image de fond avec overlay ==================*/
.login.account .login-bg-img {
    position: absolute;
    width: 48%;
    height: 100%;
    border-radius: 0;
    top: 0;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

.login.account .login-bg-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        hsl(var(--base) / 0.4) 0%, 
        hsl(var(--base-two) / 0.3) 100%
    );
}

/*=================== Formulaire avec glassmorphism moderne ==================*/
.account-form {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    padding: 50px !important;
    overflow: hidden;
    border-radius: 30px !important;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.1),
        0 2px 8px 0 rgba(0, 0, 0, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8) !important;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px 0 rgba(0, 0, 0, 0.15),
        0 4px 12px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

/*=================== Titre avec dégradé ==================*/
.account-form__title {
    background: linear-gradient(
        135deg,
        hsl(var(--base)) 0%,
        hsl(var(--base-two)) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    position: relative;
    display: inline-block;
}

.account-form__title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        hsl(var(--base)) 0%,
        hsl(var(--base-two)) 100%
    );
    border-radius: 2px;
}

.account-form__desc {
    color: hsl(var(--body-color)) !important;
    opacity: 0.85;
    line-height: 1.6;
}

/*=================== Inputs modernes avec effet focus ==================*/
.account-form .form--control {
    border: 2px solid hsl(var(--base) / 0.15) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: hsl(var(--dark)) !important;
}

.account-form .form--control:focus {
    border-color: hsl(var(--base)) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 
        0 0 0 4px hsl(var(--base) / 0.1),
        0 4px 12px 0 rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}

.account-form .form--control:hover:not(:focus) {
    border-color: hsl(var(--base) / 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.account-form .form--control::placeholder {
    color: hsl(var(--body-color) / 0.5) !important;
    font-size: 14px;
}

/*=================== Labels stylisés ==================*/
.account-form .form--label {
    font-weight: 600 !important;
    color: hsl(var(--dark)) !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.account-form .form--label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: hsl(var(--base));
    border-radius: 50%;
    margin-right: 8px;
}

/*=================== Icône de mot de passe ==================*/
.account-form .password-show-hide {
    cursor: pointer;
    padding: 14px 18px;
    background: hsl(var(--base) / 0.05);
    color: hsl(var(--base));
    border: 2px solid hsl(var(--base) / 0.15);
    border-left: none;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-form .password-show-hide:hover {
    background: hsl(var(--base) / 0.1);
    color: hsl(var(--base-d-200));
}

.account-form .input-group .form--control {
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
}

.account-form .input-group:focus-within .password-show-hide {
    border-color: hsl(var(--base));
    background: hsl(var(--base) / 0.08);
}

/*=================== Checkbox Remember me ==================*/
.account-form .form--check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-form .form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--base) / 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.account-form .form-check-input:checked {
    background-color: hsl(var(--base));
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 4px hsl(var(--base) / 0.1);
}

.account-form .form-check-input:focus {
    box-shadow: 0 0 0 4px hsl(var(--base) / 0.15);
    border-color: hsl(var(--base));
}

.account-form .form-check-label {
    font-weight: 500;
    color: hsl(var(--dark));
    cursor: pointer;
    font-size: 14px;
}

/*=================== Lien mot de passe oublié ==================*/
.account-form .forgot-password {
    font-weight: 600;
    color: hsl(var(--base)) !important;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.account-form .forgot-password::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--base));
    transition: width 0.3s ease;
}

.account-form .forgot-password:hover {
    color: hsl(var(--base-d-200)) !important;
}

.account-form .forgot-password:hover::after {
    width: 100%;
}

/*=================== Bouton de connexion moderne ==================*/
.account-form .btn--base {
    background: linear-gradient(
        135deg,
        hsl(var(--base)) 0%,
        hsl(var(--base-d-200)) 100%
    ) !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 15px hsl(var(--base) / 0.3),
        0 2px 8px hsl(var(--base) / 0.2);
}

.account-form .btn--base::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.account-form .btn--base:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 25px hsl(var(--base) / 0.4),
        0 4px 12px hsl(var(--base) / 0.3) !important;
}

.account-form .btn--base:hover::before {
    width: 300px;
    height: 300px;
}

.account-form .btn--base:active {
    transform: translateY(-1px) !important;
}

.account-form .btn--base i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.account-form .btn--base:hover i {
    transform: translateX(5px);
}

/*=================== Séparateur HR stylisé ==================*/
.account-form .hr {
    position: relative;
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        hsl(var(--base) / 0.3) 20%,
        hsl(var(--base) / 0.3) 80%,
        transparent
    );
    margin: 30px 0;
}

.account-form .hr::after {
    content: attr(data-content);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--body-color) / 0.6);
    letter-spacing: 1px;
}

/*=================== Boutons réseaux sociaux ==================*/
.account-form .social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.account-form .social .icon {
    background: linear-gradient(
        135deg,
        hsl(var(--base) / 0.08) 0%,
        hsl(var(--base) / 0.05) 100%
    ) !important;
    color: hsl(var(--base)) !important;
    border: 2px solid hsl(var(--base) / 0.2) !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.account-form .social .icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.account-form .social .icon:hover {
    background: linear-gradient(
        135deg,
        hsl(var(--base)) 0%,
        hsl(var(--base-d-200)) 100%
    ) !important;
    border-color: hsl(var(--base)) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 8px 20px hsl(var(--base) / 0.3),
        0 4px 10px hsl(var(--base) / 0.2);
}

.account-form .social .icon:hover::before {
    left: 100%;
}

.account-form .social .icon i {
    font-size: 22px !important;
    position: relative;
    z-index: 1;
}

/*=================== Texte "Create Account" ==================*/
.account-form .have-account__text {
    color: hsl(var(--body-color)) !important;
    font-size: 15px;
    margin-bottom: 0;
}

.account-form .have-account__link {
    color: hsl(var(--base)) !important;
    font-weight: 700 !important;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.account-form .have-account__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: hsl(var(--base));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.account-form .have-account__link:hover {
    color: hsl(var(--base-d-200)) !important;
}

.account-form .have-account__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/*=================== Animation d'apparition du formulaire ==================*/
@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-form {
    animation: formSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/*=================== Responsive optimisé ==================*/
@media screen and (max-width: 1199px) {
    .account-form {
        padding: 40px 30px !important;
    }
}

@media screen and (max-width: 991px) {
    .account-form {
        padding: 35px 25px !important;
    }
    
    .login.account::before,
    .login.account::after {
        width: 300px;
        height: 300px;
    }
}

@media screen and (max-width: 767px) {
    .account-form {
        padding: 30px 20px !important;
        border-radius: 24px !important;
    }
    
    .account-form__title {
        font-size: 24px !important;
    }
    
    .account-form .btn--base {
        padding: 14px 28px !important;
        font-size: 15px !important;
    }
}

@media screen and (max-width: 424px) {
    .account-form {
        padding: 25px 18px !important;
        border-radius: 20px !important;
    }
    
    .account-form .social .icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .account-form .social .icon i {
        font-size: 20px !important;
    }
}

/*=================== Mode sombre (si activé) ==================*/
.dark .account-form {
    background: rgba(30, 30, 45, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .account-form .form--control {
    background: rgba(50, 50, 65, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

.dark .account-form .form--control:focus {
    background: rgba(50, 50, 65, 0.8) !important;
    border-color: hsl(var(--base)) !important;
}

.dark .account-form .form--label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark .account-form__desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .account-form .hr::after {
    background: rgba(30, 30, 45, 0.95);
}

.dark .account-form .have-account__text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/*=================== Optimisations performances ==================*/
.account-form,
.account-form .btn--base,
.account-form .form--control,
.account-form .social .icon {
    will-change: transform;
}

/* Désactiver les transitions sur mobile pour performances */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
