/* Modern Auth Pages - Split Design - Brand Colors */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Left side - Image section */
.auth-left {
    flex: 1;
    background: url('/assets/images/fons.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

/* Specific background for forgot password page */
.forgot-password .auth-left {
    background-image: url('/assets/images/contrasenya.jpg');
}

/* Specific background for change password page */
.change-password .auth-left {
    background-image: url('/assets/images/contrasenya.jpg');
}

/* Password info styling */
.password-info {
    margin-top: 15px;
    text-align: center;
}

.password-info small {
    color: #718096;
    font-size: 0.875rem;
}

/* Right side - Form section */
.auth-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* Auth Header Styles */
.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    width: 80px;
    margin-bottom: 20px;
}

.auth-form-header h2 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: #718096;
    font-size: 1rem;
}

/* Form styling with brand colors */
.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form .form-control {
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.modern-form .form-control:focus {
    border-color: #01a499;
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 164, 153, 0.1);
    outline: none;
}

.modern-form .form-control::placeholder {
    color: #a0aec0;
}

/* Brand colored button */
.modern-btn {
    width: 100%;
    height: 50px;
    background: #01a499;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 164, 153, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 119, 37, 0.4);
    background: #e67725;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: #01a499;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #fcb71e;
}

/* Alerts with brand colors */
.modern-alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
}

.modern-alert.alert-success {
    background: rgba(1, 164, 153, 0.1);
    color: #01a499;
    border-left: 4px solid #01a499;
}

.modern-alert.alert-danger {
    background: #fff5f5;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        min-height: 100vh;
        background: white;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        width: 100%;
    }
    
    .auth-form-container {
        width: 100%;
        max-width: 400px;
        padding: 1rem;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-form-header h2 {
        font-size: 24px;
    }
}

/* Background decoration with brand colors */
.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(1, 164, 153, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.auth-form-container {
    position: relative;
    z-index: 1;
}

/* Loading state */
.modern-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modern-btn.loading {
    position: relative;
    color: transparent;
}

.modern-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accent elements with yellow and orange */
.auth-form-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fcb71e 0%, #e67725 100%);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Enhanced focus states */
.modern-form input[type="email"]:focus,
.modern-form input[type="password"]:focus,
.modern-form input[type="text"]:focus {
    border-color: #01a499;
    box-shadow: 0 0 0 3px rgba(1, 164, 153, 0.1);
}

/* Valid input states */
.modern-form input.valid {
    border-color: #01a499;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2301a499' d='m2.3 6.73.94-.94 2.94 2.94 2.94-2.94.94.94L3.24 7.67z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

/* Invalid input states */
.modern-form input.invalid {
    border-color: #e53e3e;
}

/* Checkbox styling for terms */
.modern-form input[type="checkbox"] {
    accent-color: #01a499;
    width: 18px;
    height: 18px;
}

/* Brand-colored links */
.auth-links a,
.modern-form a {
    color: #01a499;
    transition: color 0.3s ease;
}

.auth-links a:hover,
.modern-form a:hover {
    color: #fcb71e;
    text-decoration: underline;
} 