/* =============================================
   Authentication Pages Styles
   ============================================= */

.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #f5f0e8 100%);
}

/* Login page: two columns - login left, browse right */
.auth-login-row {
    max-width: 1000px;
    margin: 0 auto;
}

/* Left panel: Browse without login */
.auth-browse-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    padding: 40px;
}

@media (max-width: 991.98px) {
    .auth-browse-panel {
        border-radius: 20px 20px 0 0;
        padding: 28px 20px;
    }
    .auth-browse-title {
        font-size: 22px;
    }
    .auth-browse-text {
        margin-bottom: 22px;
    }
    .auth-browse-btn {
        padding: 18px 20px;
    }
}

/* Right panel: Login form */
.auth-card-login {
    border-radius: 0 20px 20px 0;
}

@media (max-width: 991.98px) {
    .auth-card-login {
        border-radius: 0 0 20px 20px;
    }
}

.auth-browse-inner {
    width: 100%;
}

.auth-browse-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.auth-browse-title {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-browse-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 320px;
}

.auth-browse-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-browse-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.auth-browse-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.auth-browse-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-browse-btn-icon i {
    font-size: 20px;
}

.auth-browse-btn-label {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}

.auth-browse-btn-desc {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.4;
}

.auth-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-body {
    padding: 50px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.auth-icon i {
    font-size: 36px;
    color: var(--white);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

.auth-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    transition: var(--transition);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.15);
}

.auth-form .input-group-text {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--text-muted);
}

.auth-form .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.auth-form .form-check {
    margin-bottom: 25px;
}

.auth-form .form-check-label {
    font-size: 14px;
    color: var(--text-light);
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-auth {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-auth:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Vendor Registration */
.vendor-auth-card {
    max-width: 800px;
}

.auth-section-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.auth-section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Vendor Pending Page */
.pending-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.pending-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 60px;
    text-align: center;
}

.pending-icon {
    width: 120px;
    height: 120px;
    background-color: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.pending-icon i {
    font-size: 60px;
    color: #856404;
}

.pending-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 20px;
}

.pending-message {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pending-steps {
    background-color: var(--bg-cream);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    margin-bottom: 30px;
}

.pending-steps h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.pending-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending-steps li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.pending-steps li i {
    color: #28a745;
    margin-right: 12px;
}

@media (max-width: 767.98px) {
    .auth-card-body {
        padding: 30px;
    }
    
    .auth-title {
        font-size: 26px;
    }
    
    .pending-card {
        padding: 40px 20px;
    }
    
    .pending-title {
        font-size: 26px;
    }
}

/* Mobile: keep input-group horizontal and fix icon/field sizes (override app.css column layout) */
@media (max-width: 575.98px) {
    .auth-section {
        padding: 30px 15px;
    }
    
    .auth-card-body {
        padding: 20px 16px;
    }
    
    .auth-form .input-group {
        flex-direction: row;
        display: flex;
        align-items: stretch;
    }
    
    .auth-form .input-group-text {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 10px 0 0 10px;
    }
    
    .auth-form .input-group-text i {
        font-size: 1rem;
    }
    
    .auth-form .input-group .form-control {
        min-width: 0;
        flex: 1;
        margin-bottom: 0;
        border-radius: 0 10px 10px 0;
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    
    .auth-form .form-label {
        font-size: 14px;
    }
    
    .btn-auth {
        padding: 14px;
        font-size: 15px;
    }
}

