:root {
    --primary-color: var(--bs-primary, #D4A762);
    --primary-gradient: linear-gradient(135deg, var(--bs-primary, #D4A762) 0%, var(--secondary-color, #1a1a1a) 100%);
}

.auth-container {
    min-height: 90vh;
    padding: 40px 0;
    background: var(--accent-bg, #f8f9fa);
    overflow-x: hidden;
}

.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 820px; /* Reduced width */
    margin: auto;
    background: white;
}

.auth-header {
    background: var(--secondary-color, #1a1a1a);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .auth-header {
        padding: 30px;
    }
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.auth-body {
    padding: 25px 20px;
}

@media (min-width: 768px) {
    .auth-body {
        padding: 30px 40px;
    }
}

/* Multi-step progress bar */
.progress-container {
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 6px;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
    font-size: 14px;
}

.step-item.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 167, 98, 0.15);
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: var(--primary-color);
}

.progress-line {
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.progress-line-active {
    position: absolute;
    top: 16px;
    left: 40px;
    height: 2px;
    background: var(--primary-color);
    z-index: 0;
    width: 0%;
    transition: width 0.4s ease;
}

.reg-step {
    display: none;
}

.reg-step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 167, 98, 0.1);
}

.img-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.preview-box {
    height: 80px;
    border-radius: 6px;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--accent-bg, #f8f9fa);
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-primary {
    background: var(--primary-color);
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #b88d4a;
}

.btn-outline-secondary {
    padding: 12px 30px;
    border-radius: 6px;
}

.section-title {
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.invalid-feedback {
    font-size: 0.75rem;
}

/* Login specific extras */
.auth-icon-circle { 
    width:72px; height:72px; border-radius:50%; 
    background:rgba(212, 167, 98, 0.2); 
    display:inline-flex; align-items:center; justify-content:center; 
    margin-bottom:1rem; 
}
.auth-icon-circle i { font-size:1.8rem; color: var(--primary-color); }

.auth-divider { 
    display:flex; align-items:center; gap:12px; 
    margin:1.25rem 0; color:#adb5bd; font-size:.85rem; 
}
.auth-divider::before, .auth-divider::after { 
    content:''; flex:1; height:1px; background:#dee2e6; 
}

/* Customer Theme Overrides */
.customer-auth .auth-header {
    background: var(--primary-gradient);
}
.customer-auth .auth-header::after {
    display: none;
}
.customer-auth .auth-icon-circle { 
    background: rgba(255,255,255,0.2); 
}
.customer-auth .auth-icon-circle i { 
    color: white; 
}
.customer-auth .btn-primary { 
    background: var(--primary-gradient); 
}

/* Method Tabs for both profiles */
.btn-check:checked + .btn-outline-primary { 
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
    color: white !important; 
}
.btn-outline-primary { 
    color: var(--primary-color); 
    border-color: var(--primary-color); 
    border-radius: 6px;
}
.btn-outline-primary:hover { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
    color: white; 
}
