/* Auth Pages Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-left {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.auth-right {
    flex: 1;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-right-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-right-content img {
    max-width: 80%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Form Styling */
.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form .form-control {
    height: 48px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.2s ease;
}

.auth-form .form-control:focus + .form-icon {
    color: #2563eb;
}

.auth-form .btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-form .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #dc2626;
    padding-right: 4rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem 1.5rem;
}

.invalid-feedback {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Add new styles for password toggle */
.auth-form .password-group {
    position: relative;
}

.auth-form .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-form .password-toggle:hover {
    color: #2563eb;
}

.auth-form .password-toggle:focus {
    outline: none;
    color: #2563eb;
}

/* Adjust padding for password fields to accommodate the toggle button */
.auth-form .password-group .form-control {
    padding-right: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-right {
        display: none;
    }
    
    .auth-left {
        padding: 2rem 1rem;
    }
}