/* TheraConnect — auth.css */

/* === Auth Split Layout === */
.auth-split {
    display: flex; min-height: 100vh;
}

.auth-brand-panel {
    flex: 0 0 45%; background: linear-gradient(145deg, #1e6a4e, #0f4c3a);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 40px; color: white; text-align: center;
}
.auth-brand-panel .logo-icon {
    width: 64px; height: 64px; font-size: 32px;
    background: rgba(255,255,255,0.15); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.auth-brand-panel h1 {
    font-size: 32px; font-weight: 700; margin-bottom: 16px;
}
.auth-brand-panel h1 span { color: var(--gold); }
.auth-brand-panel p { font-size: 16px; opacity: 0.85; line-height: 1.6; max-width: 340px; }
.auth-brand-badges {
    display: flex; flex-direction: column; gap: 12px; margin-top: 32px;
    font-size: 15px; font-weight: 500;
}
.auth-brand-badges span { display: flex; align-items: center; gap: 10px; }
.auth-brand-badges i { color: var(--gold); }

.auth-form-panel {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 48px 40px; background: var(--bg-body);
}

/* === Auth Card === */
.auth-card {
    background: white; border-radius: 28px; padding: 40px 36px;
    box-shadow: 0 12px 40px rgba(30,80,40,0.08); border: 1px solid var(--border-filter);
    width: 100%; max-width: 480px;
}
.auth-card h2 {
    font-size: 24px; font-weight: 700; color: var(--green-heading); margin-bottom: 8px;
}
.auth-card .subtitle {
    font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}

/* === Auth Tabs (Patient / Therapist) === */
.auth-tabs {
    display: flex; background: #f0f6f0; border-radius: var(--radius-pill);
    padding: 4px; margin-bottom: 24px;
}
.auth-tab {
    flex: 1; padding: 10px 16px; text-align: center; font-size: 14px;
    font-weight: 600; border-radius: var(--radius-pill); cursor: pointer;
    border: none; background: transparent; color: var(--text-muted);
    transition: var(--t-base);
}
.auth-tab.active { background: white; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* === Step Progress (Therapist Registration) === */
.auth-step-progress {
    display: flex; align-items: center; gap: 0; margin-bottom: 28px;
    padding: 0 8px;
}
.auth-step {
    flex: 1; text-align: center; position: relative; font-size: 13px;
    font-weight: 600; color: var(--text-muted);
}
.auth-step .step-num {
    width: 32px; height: 32px; border-radius: var(--radius-circle);
    background: #e2ece0; color: var(--text-muted); display: flex;
    align-items: center; justify-content: center; margin: 0 auto 6px;
    font-weight: 700; transition: var(--t-base);
}
.auth-step.active .step-num { background: var(--green); color: white; }
.auth-step.done .step-num { background: var(--green); color: white; }
.auth-step.active { color: var(--green); }
.auth-step.done { color: var(--green); }
.auth-step::after {
    content: ''; position: absolute; top: 16px; left: calc(50% + 20px);
    width: calc(100% - 40px); height: 2px; background: #e2ece0;
}
.auth-step:last-child::after { display: none; }
.auth-step.done::after { background: var(--green); }

/* === Form Groups === */
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-group label:not(.auth-toggle) {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--green-filter); margin-bottom: 8px;
}
.auth-card .form-group label.auth-toggle {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    font-weight: 500; margin-bottom: 0;
}

/* === Specialty Grid (Checkboxes) === */
.auth-specialty-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.auth-card .auth-specialty-grid label {
    display: flex; align-items: center; gap: 8px; font-size: 14px;
    font-weight: 500; cursor: pointer; padding: 6px 8px;
    border-radius: var(--radius-md); transition: var(--t-fast);
    margin-bottom: 0;
}
.auth-specialty-grid label:hover { background: var(--bg-tag); }
.auth-specialty-grid label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }

/* === Photo Upload === */
.auth-photo-upload {
    width: 100px; height: 100px; border-radius: var(--radius-2xl);
    border: 2px dashed var(--border-input); display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    color: var(--text-muted); font-size: 12px; gap: 4px;
    transition: var(--t-base);
}
.auth-photo-upload:hover { border-color: var(--green); color: var(--green); }
.auth-photo-upload i { font-size: 24px; }

/* === Toggle === */
.auth-toggle {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.auth-toggle input[type="checkbox"] { display: none; }
.auth-toggle .toggle-track {
    flex-shrink: 0; min-width: 44px; min-height: 24px;
    width: 44px; height: 24px; background: #ccc; border-radius: 12px;
    position: relative; transition: var(--t-base);
}
.auth-toggle input:checked + .toggle-track { background: var(--green); }
.auth-toggle .toggle-track::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px; border-radius: var(--radius-circle);
    background: white; transition: var(--t-base); box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.auth-toggle input:checked + .toggle-track::after { left: 22px; }

/* === Pending Banner === */
.auth-pending-banner {
    background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius-lg);
    padding: 16px 20px; display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500; color: #5d4037; margin-bottom: 24px;
}
.auth-pending-banner i { color: var(--warning); font-size: 20px; flex-shrink: 0; }

/* === Avatar Selector === */
.avatar-selector {
    display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; justify-content: center;
}
.avatar-option { text-align: center; cursor: pointer; }
.avatar-option img {
    width: 70px; height: 70px; border-radius: var(--radius-circle);
    border: 3px solid transparent; object-fit: cover; transition: var(--t-base);
}
.avatar-option.selected-avatar img {
    border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,106,78,0.3);
}

/* === Responsive === */
@media screen and (max-width: 900px) {
    .auth-split { flex-direction: column; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { padding: 24px 16px; min-height: 100vh; }
    .auth-card { padding: 28px 20px; }
    .auth-specialty-grid { grid-template-columns: 1fr; }
}

/* === Utility classes (replacing inline styles) === */
.auth-card-wide { max-width: 540px; }
.auth-hidden { display: none; }
.btn-full { width: 100%; }
.auth-footer-link { text-align: center; margin-top: 16px; }
.auth-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.auth-btn-row { display: flex; gap: 12px; }
.auth-btn-row > * { flex: 1; }



/* ═══════════════════════════════════════════════════════════════
   SPECIALTY GROUP ACCORDION — Auth registration step 2
   ═══════════════════════════════════════════════════════════════ */

.auth-card .sg-accordion .spec-grid,
.auth-specialty-grouped .spec-grid {
    grid-template-columns: repeat(2, 1fr);
}
