.auth-container {
    min-height: 100vh;
    background-color: #007bff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    margin-top: -60px;
    padding-top: 80px;
}

.auth-wrapper {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 600px;
    
}

.auth-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    position: relative;
    flex: 1;
    min-width: 400px;
    
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

 
.password-validation-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: none;
     
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(20px);
}

.validation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
     
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

 
.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
     
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    transform: translateY(0);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
     
    transform: translateY(-1px);
}

.form-input:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

 
.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
     
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.auth-submit-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
     
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn:disabled:hover {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

 
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem;
     
    transition: color 0.2s ease;
}

 
.form-group {
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.form-group:hover .form-label {
    color: #007bff;
}

 
.auth-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    position: relative;
    flex: 1;
    min-width: 400px;
     
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

 .password-field-wrapper {
            position: relative;
        }
        
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 2;
}

.password-toggle:hover {
    color: #4f46e5;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle.active {
    color: #4f46e5;
}

.password-toggle::before {
    content: '\f070'; /* eye-slash icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: all 0.3s ease;
}

.password-toggle.show::before {
    content: '\f06e'; /* eye icon */
    animation: eyeBlink 0.3s ease;
}

@keyframes eyeBlink {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

.form-input[type="password"],
.form-input[type="text"] {
    padding-right: 45px;
}


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

 
@media (max-width: 768px) {
    .auth-container {
        padding-top: 76px;  
    }
    
    .auth-wrapper {
        flex-direction: column;
        max-width: 500px;
         
        transition: all 0.3s ease;
    }
    
    .password-validation-sidebar {
        width: 100%;
        order: 2;
        display: none;
         
        transition: all 0.3s ease;
        transform: translateY(20px);
    }
    
    .auth-form-container {
        min-width: auto;
        order: 1;
         
        animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 5px;
        padding-top: 81px;  
    }
    
    .auth-form-container {
        padding: 15px;
    }
    
    .password-validation-sidebar {
        padding: 15px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}

/* ✅ Estils per a files del formulari - NOMÉS AFEGIR AIXÒ */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* ✅ Responsive per mòbil - NOMÉS AFEGIR AIXÒ */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
}