/* ============ CUSTOMER AUTH STYLES ============ */

.customer-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: #f8fafc;
}

/* ============ CUSTOMER MARKETING SIDEBAR ============ */
.customer-marketing-panel {
    flex: 0 0 42%;
    background: linear-gradient(135deg, #0e7c3e 0%, #06522a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.customer-marketing-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.customer-marketing-content {
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.customer-marketing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.customer-marketing-logo i {
    font-size: 2rem;
}

.customer-marketing-logo .logo-text {
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.customer-marketing-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.customer-marketing-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.customer-marketing-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.customer-marketing-feature-icon {
    flex: 0 0 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.customer-marketing-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.customer-marketing-feature-text p {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.45;
    margin: 0;
}

.customer-marketing-testimonial {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.25rem;
}

.customer-marketing-testimonial i {
    opacity: 0.4;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.customer-marketing-testimonial p {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.customer-marketing-testimonial .testimonial-author {
    font-size: 0.78rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ============ CUSTOMER AUTH FORMS PANEL ============ */
.customer-auth-forms-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.customer-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

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

.customer-auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.customer-auth-header .logo-text {
    font-weight: 700;
    color: var(--color-primary);
}

.customer-auth-header .logo i {
    font-size: 1.5rem;
}

.customer-auth-subtitle {
    font-size: var(--text-sm);
    color: #6b7280;
    margin: 0;
}

/* Form Styles */
.customer-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-auth-form .form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #374151;
}

.customer-auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.customer-auth-form .input-icon {
    position: absolute;
    left: 0.75rem;
    color: #9ca3af;
    font-size: var(--text-sm);
    pointer-events: none;
}

.customer-auth-form .input-wrapper input,
.customer-auth-form .input-wrapper select {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    color: #111827;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-auth-form .input-wrapper input:focus,
.customer-auth-form .input-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.customer-auth-form .input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
}

.customer-auth-form .toggle-password {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    font-size: var(--text-sm);
}

.customer-auth-form .toggle-password:hover {
    color: #6b7280;
}

.customer-auth-form .field-error {
    font-size: var(--text-xs);
    color: #dc2626;
    min-height: 1rem;
}

/* Options row */
.customer-auth-form .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.customer-auth-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    color: #4b5563;
}

.customer-auth-form .checkbox-label input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 1rem;
    height: 1rem;
}

.customer-auth-form .link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--text-sm);
}

.customer-auth-form .link:hover {
    text-decoration: underline;
}

/* Buttons */
.customer-auth-form .btn-full {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--text-base);
    font-weight: 600;
}

/* Auth Switch */
.customer-auth-form .auth-switch {
    text-align: center;
    font-size: var(--text-sm);
    color: #6b7280;
    margin-top: 0.5rem;
}

.customer-auth-form .auth-switch .link {
    color: var(--color-primary);
    font-weight: 500;
}

/* Password Strength */
.customer-auth-form .password-strength {
    margin-top: 0.25rem;
}

.customer-auth-form .strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.customer-auth-form .strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}

.customer-auth-form .strength-text {
    font-size: var(--text-xs);
    color: #9ca3af;
}

/* Footer */
.customer-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.customer-switch-merchant {
    font-size: var(--text-sm);
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
}

.customer-switch-merchant a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.customer-switch-merchant a:hover {
    text-decoration: underline;
}

.customer-switch-merchant i {
    margin-right: 0.25rem;
}

/* ============ RESPONSIVE: MOBILE STACK ============ */
@media (max-width: 768px) {
    .customer-auth-container {
        flex-direction: column;
    }

    .customer-marketing-panel {
        flex: none;
        padding: 2rem 1.5rem 1.5rem;
    }

    .customer-marketing-features {
        gap: 1rem;
    }

    .customer-marketing-feature-text p {
        display: none;
    }

    .customer-marketing-testimonial {
        display: none;
    }

    .customer-marketing-tagline {
        margin-bottom: 1.5rem;
    }

    .customer-auth-forms-panel {
        padding: 1.5rem 1rem 2rem;
    }
}

/* "(optional)" hint next to a field label — muted so the required
   fields (name, phone, password) read as the primary ones. */
.customer-auth-form .field-optional {
    font-weight: 400;
    font-size: 0.8em;
    color: #94a3b8;
    margin-left: 0.25rem;
}