/* ========================================
   MODERN AUTH STYLES - Following main.css
======================================== */

/* Auth Section */
.auth-section {
    background: var(--autowash-background);
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    max-width: 500px;
    width: 100%;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand {
    margin-bottom: 1rem;
}

.auth-brand .brand-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--autowash-primary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Auth Body */
.auth-body {
    margin-bottom: 1rem;
}

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

/* Compact form styling for business registration */
/* Reduce spacing for register form */
.auth-section form .form-group {
    margin-bottom: 0.75rem;
}

.auth-section form .row.g-2 .form-group {
    margin-bottom: 0.5rem;
}

.auth-section .form-text {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.auth-section .auth-subtitle {
    margin-bottom: 1.25rem;
}

/* Compact register form styling */
.auth-card form .row.g-2 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.5rem;
}

.auth-card .form-group {
    margin-bottom: 0.75rem;
}

/* Reduce alert spacing */
.auth-card .alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* Business registration specific spacing fixes */
.auth-card .mb-4 {
    margin-bottom: 1.5rem !important; /* Reduce from default 1.5rem */
}

.auth-card .mb-3 {
    margin-bottom: 0.75rem !important; /* Reduce from default 1rem */
}

/* Compact auth header for business register */
.auth-card .auth-header {
    margin-bottom: 1.5rem;
}

/* Compact step indicators for business register */
.auth-card .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
}

.auth-card .step-circle + .small {
    font-size: 0.75rem;
    line-height: 1.2;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    background: white;
    width: 100%;
}

.form-control:focus {
    border-color: var(--autowash-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control.is-valid {
    border-color: var(--autowash-secondary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.is-invalid {
    border-color: var(--autowash-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--autowash-accent);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.invalid-feedback {
    color: var(--autowash-accent);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Password Toggle */
.position-relative .toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: none;
    color: var(--gray-500);
    padding: 0 1rem;
    transition: var(--transition-fast);
}

.position-relative .toggle-password:hover {
    color: var(--autowash-primary);
}

.position-relative .toggle-password:focus {
    outline: none;
    color: var(--autowash-primary);
}

/* Form Check */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--autowash-primary);
    border-color: var(--autowash-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--autowash-primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Auth Buttons */
.btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-auth.btn-primary {
    background: var(--autowash-primary);
    color: white;
    border: 1px solid var(--autowash-primary);
}

.btn-auth.btn-primary:hover {
    background: var(--autowash-primary-dark);
    border-color: var(--autowash-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-auth.btn-purple {
    background: var(--autowash-purple);
    color: white;
    border: 1px solid var(--autowash-purple);
}

.btn-auth.btn-purple:hover {
    background: var(--autowash-purple-dark);
    border-color: var(--autowash-purple-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Auth Divider */
.auth-divider-text {
    background: white;
    color: var(--gray-500);
    padding: 0 1rem;
    font-size: 0.875rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Social Buttons */
.btn-outline-secondary {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: white;
}

.btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* Links */
.auth-section a {
    color: var(--autowash-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-section a:hover {
    color: var(--autowash-primary-dark);
    text-decoration: underline;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.875rem;
}

.alert-light {
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* Trial Info */
.text-white-75 {
    color: var(--gray-600) !important;
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-brand .brand-text {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        max-width: 350px;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
    }
}

/* Additional Modern Touches */
.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Animation for loading states */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    animation: fadeIn 0.3s ease-out;
}

/* Step Indicators */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.step-circle.active {
    background: var(--autowash-primary);
    color: white;
}

.step-circle.inactive {
    background: var(--gray-300);
    color: var(--gray-600);
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-icon.success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--autowash-secondary);
}

.feature-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--autowash-primary);
}

.feature-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Profile Avatar */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--autowash-primary);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
    background: var(--gray-50);
    cursor: pointer;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-zone:hover {
    border-color: var(--autowash-primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-zone.dragover {
    border-color: var(--autowash-primary-dark);
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
}

.upload-zone.has-file {
    border-color: var(--autowash-secondary);
    background: rgba(5, 150, 105, 0.05);
}

/* Document Status */
.document-status {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.document-status.uploaded {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.3);
}

.document-status.missing {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    width: 60%;
}

.progress-bar.bg-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Loading states */
.btn-primary-custom:disabled {
    background: #ccc;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* ========================================
   ADDITIONAL AUTH COMPONENTS
======================================== */

/* Email verification notice styling */
.email-verification-notice {
    font-size: 0.9rem;
    border-left: 4px solid #007bff;
    background: #f8f9ff;
}

/* Password toggle buttons */
.btn-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-password-toggle:hover {
    color: #495057;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-very-weak { background-color: #dc3545; }
.strength-weak { background-color: #fd7e14; }
.strength-fair { background-color: #ffc107; }
.strength-good { background-color: #20c997; }
.strength-strong { background-color: #28a745; }

/* Password requirements box */
.password-requirements {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.password-requirements ul {
    padding-left: 16px;
    margin: 0;
}

.password-requirements li {
    font-size: 0.875rem;
    margin-bottom: 2px;
}

/* Password mismatch indicator */
.password-mismatch-hidden {
    display: none;
}

/* Success and error state icons */
.auth-icon-success {
    color: #28a745;
}

.auth-icon-error {
    color: #dc3545;
}

/* ========================================
   PROFILE PAGE STYLES
======================================== */

/* Profile Layout */
.auth-section .row {
    margin: 0;
    min-height: 100vh;
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--autowash-primary) 0%, var(--autowash-primary-dark) 100%);
    color: white;
    padding: 0;
    min-height: 100vh;
}

.auth-sidebar-content {
    padding: 2rem;
    height: 100%;
}

.auth-main-content {
    background: var(--autowash-background);
    padding: 0;
    min-height: 100vh;
}

.auth-content-wrapper {
    padding: 2rem;
    height: 100%;
}

/* Profile Brand */
.auth-sidebar .auth-brand .brand-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Profile Avatar */
.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar-placeholder {
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--autowash-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.avatar-edit-btn:hover {
    background: var(--autowash-secondary-dark);
    transform: scale(1.1);
}

/* Profile Info */
.profile-name {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-email {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.profile-role-badge .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

/* Profile Stats */
.profile-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.stat-item {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Quick Actions */
.profile-quick-actions h6 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.profile-quick-actions .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.profile-quick-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.profile-quick-actions .btn-outline-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

/* Content Header */
.auth-content-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--autowash-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

.auth-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-content-description {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Auth Cards for Profile */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.auth-card-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: none;
}

.auth-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-card-body {
    padding: 1.5rem;
}

/* Profile Form */
.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Security Items */
.security-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.security-item:last-child {
    border-bottom: none;
}

.security-info {
    flex: 1;
}

.security-info strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.security-info p {
    margin: 0;
    font-size: 0.875rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: var(--autowash-secondary);
    color: white;
}

.badge-warning {
    background: var(--autowash-warning);
    color: var(--gray-900);
}

/* Photo Modal */
.current-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
}

.no-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gray-500);
}

.no-photo i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-help {
    margin-top: 0.75rem;
    text-align: center;
}

/* Alert Container */
.alert-container {
    margin-bottom: 2rem;
}

/* Responsive Profile */
@media (max-width: 991px) {
    .auth-sidebar {
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .auth-main-content {
        min-height: auto;
    }
    
    .profile-stats {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 1rem;
        margin-bottom: 0;
    }
    
    .stat-item:last-child {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .auth-content-wrapper {
        padding: 1rem;
    }
    
    .auth-sidebar-content {
        padding: 1.5rem;
    }
    
    .auth-content-title {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Compact styling for register template - match login spacing */
.auth-section #registrationForm .form-group,
.auth-section #businessRegistrationForm .form-group {
    margin-bottom: 0.75rem !important;
}

.auth-section #registrationForm .form-check,
.auth-section #businessRegistrationForm .form-check {
    margin-bottom: 0.75rem !important;
}

.auth-section #registrationForm .auth-header,
.auth-section #businessRegistrationForm .auth-header {
    margin-bottom: 1.5rem !important;
}

.auth-section #registrationForm .auth-title,
.auth-section #businessRegistrationForm .auth-title {
    margin-bottom: 0.5rem !important;
}

.auth-section #registrationForm .auth-subtitle,
.auth-section #businessRegistrationForm .auth-subtitle {
    margin-bottom: 1rem !important;
}