/* Auth Pages Styles */

.auth-page {
    min-height: 100vh;
    background: var(--background-color);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Image */
.auth-image-side {
    flex: 0 0 33.333%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}

.auth-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%);
    z-index: 2;
}

.auth-image-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    color: white;
    max-width: 100%;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.auth-logo i {
    font-size: 1.75rem;
}

.auth-image-text {
    margin-bottom: 2rem;
}

.auth-image-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.auth-image-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-image-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.auth-feature i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.auth-feature span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Steps for register page */
.auth-image-steps {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-image-steps h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.625rem;
}

.auth-step .step-num {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-step span:last-child {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Right Side - Form */
.auth-form-side {
    flex: 0 0 66.667%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    background: var(--card-background);
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem 0;
}

.auth-form-container.auth-form-register {
    max-width: 580px;
}

.auth-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.auth-mobile-logo i {
    font-size: 1.75rem;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-label .optional {
    font-weight: 400;
    color: var(--text-secondary);
}

/* Password field with toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.auth-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--card-background);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.auth-form .form-control::placeholder {
    color: var(--text-light);
}

.auth-form select.form-control {
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.auth-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Form row for side-by-side fields */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checkbox styling */
.auth-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.auth-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.auth-form .checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-form .checkbox-group a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Submit button */
.auth-form .btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
}

/* Auth footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.auth-back-link a:hover {
    color: var(--primary-color);
}

/* Form help and error text */
.auth-form .form-help {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
}

.auth-form .form-error {
    font-size: 0.8125rem;
    color: var(--error-color);
    margin-top: 0.375rem;
    display: none;
}

.auth-form .form-control.error {
    border-color: var(--error-color);
}

.auth-form .form-control.error + .form-error,
.auth-form .form-group.error .form-error {
    display: block;
}

/* Alerts */
.auth-form-container .alert {
    margin-bottom: 1.5rem;
}

/* Turnstile */
.cf-turnstile {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-form-side {
        padding: 2rem 3rem;
    }
}

@media (max-width: 1024px) {
    .auth-image-side {
        flex: 0 0 38%;
    }
    
    .auth-form-side {
        flex: 0 0 62%;
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .auth-image-side {
        display: none;
    }
    
    .auth-form-side {
        flex: none;
        width: 100%;
    }
    
    .auth-mobile-logo {
        display: inline-flex;
    }
    
    .auth-form-container {
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .auth-form-side {
        padding: 1.5rem;
    }
    
    .auth-form-container {
        padding: 1rem 0;
    }
    
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .auth-form .btn-primary {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 1rem;
    }
    
    .auth-mobile-logo {
        font-size: 1.25rem;
    }
    
    .auth-form-header h2 {
        font-size: 1.375rem;
    }
    
    .auth-form-header p {
        font-size: 0.9375rem;
    }
}