/* =============================================
   Baba Telehealth — auth.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.bth-auth-wrap {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    min-height: 560px;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.13);
}

/* ---- Card (left / form side) ---- */
.bth-auth-card {
    background: #fff;
    flex: 1;
    padding: 36px 38px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---- Brand ---- */
.bth-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.bth-auth-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}
.bth-auth-brand-sub {
    font-size: 11px;
    color: #7f8c8d;
}

/* ---- Tabs ---- */
.bth-auth-tabs {
    display: flex;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}
.bth-auth-tab {cursor:pointer;background:transparent;border:none;font-family:inherit;
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.18s;
}
.bth-auth-tab.active {
    background: #fff;
    color: #27ae60;
    box-shadow: 0 1px 6px rgba(0,0,0,0.09);
}
.bth-auth-tab:hover:not(.active) { color: #2c3e50; }

/* ---- Alerts ---- */
.bth-auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.bth-auth-alert.error   { background: #fdedec; color: #e74c3c; }
.bth-auth-alert.success { background: #eafaf1; color: #27ae60; }

/* ---- Form ---- */
.bth-auth-form { display: flex; flex-direction: column; gap: 0; }
.bth-auth-field { margin-bottom: 16px; }
.bth-auth-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bth-required { color: #e74c3c; }
.bth-auth-field label small { font-size: 11px; color: #aaa; text-transform: none; letter-spacing: 0; font-weight: 400; }
.bth-forgot-link { font-size: 12px; color: #27ae60; text-decoration: none; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bth-forgot-link:hover { text-decoration: underline; }

.bth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.bth-input-icon {
    position: absolute;
    left: 12px;
    color: #aab;
    pointer-events: none;
    flex-shrink: 0;
}
.bth-input-wrap input {
    width: 100%;
    border: 1.5px solid #e9ecef;
    border-radius: 9px;
    padding: 11px 42px 11px 38px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #2c3e50;
    outline: none;
    transition: border 0.18s, box-shadow 0.18s;
    background: #fff;
}
.bth-input-wrap input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39,174,96,.1);
}
.bth-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aab;
    padding: 0;
    display: flex;
    align-items: center;
}
.bth-toggle-pass:hover { color: #27ae60; }

.bth-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---- Remember / Terms ---- */
.bth-auth-remember, .bth-auth-terms { margin-bottom: 16px; }
.bth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.bth-checkbox-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #27ae60;
    flex-shrink: 0;
}
.bth-checkbox-label a { color: #27ae60; text-decoration: none; }
.bth-checkbox-label a:hover { text-decoration: underline; }

/* ---- Password Strength ---- */
.bth-auth-strength { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.bth-strength-bar { flex: 1; height: 5px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.bth-strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }
#bth-strength-label { font-size: 12px; font-weight: 600; min-width: 60px; }

/* ---- Submit Button ---- */
.bth-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    margin-bottom: 16px;
}
.bth-auth-submit:hover { background: #1e8449; transform: translateY(-1px); }
.bth-auth-submit:active { transform: translateY(0); }

.bth-auth-switch { text-align: center; font-size: 13px; color: #7f8c8d; }
.bth-auth-switch a { color: #27ae60; font-weight: 600; text-decoration: none; }
.bth-auth-switch a:hover { text-decoration: underline; }

/* ---- Side Panel ---- */
.bth-auth-side {
    width: 340px;
    min-width: 280px;
    background: linear-gradient(145deg, #1a7a45 0%, #27ae60 50%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bth-auth-side::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.bth-auth-side::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.bth-auth-side-content { position: relative; z-index: 1; }
.bth-auth-side-content h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.bth-auth-side-content > p { font-size: 14px; opacity: .88; line-height: 1.6; margin-bottom: 28px; }
.bth-auth-features { display: flex; flex-direction: column; gap: 18px; }
.bth-auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.bth-feature-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.bth-auth-feature strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.bth-auth-feature span { font-size: 12px; opacity: .8; }

/* ---- Responsive ---- */
@media (max-width: 780px) {
    .bth-auth-side { display: none; }
    .bth-auth-card { padding: 28px 22px; }
    .bth-auth-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .bth-auth-wrap { border-radius: 0; box-shadow: none; }
    .bth-auth-card { padding: 20px 16px; }
}
