/**
 * TopTutorBD — assets/css/auth.css
 * Author: RaKiBuL HaSaN - CEO & Founder, The One Stop BD (theonestopbd.com)
 * Developer Phone: +8801752986368
 * Developer Email: rhs.rakibul@gmail.com
 */
/* TopTutorBD — assets/css/auth.css — styles specific to auth/*.php (login/signup/otp/reset). */

body.auth-body { padding-bottom:0; }

.logo-bar { background:var(--green); padding:1rem 1.25rem; display:flex; align-items:center; gap:.75rem; }
.logo-back { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.15); border:none; color:#fff; font-size:1rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-left { display:flex; align-items:center; gap:.75rem; flex:1; }
.logo-circle { width:42px; height:42px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center; font-size:1.375rem; color:#fff; }
.logo-text { font-family:'Poppins',sans-serif; font-weight:800; font-size:1.25rem; color:#fff; }
.logo-text span { color:#ffcc00; }
.logo-actions { display:flex; align-items:center; gap:.5rem; }
.theme-btn-auth { background:rgba(255,255,255,.15); border:none; color:#fff; border-radius:16px; padding:.35rem .7rem; font-size:.75rem; font-weight:700; }

.auth-main { flex:1; display:flex; flex-direction:column; align-items:center; padding:1.25rem 1rem 2rem; max-width:480px; margin:0 auto; width:100%; }

.tab-bar { display:flex; width:100%; background:var(--card-bg); border-radius:12px; border:1px solid var(--border); overflow:hidden; margin-bottom:1.25rem; box-shadow:var(--shadow); }
.tab-btn { flex:1; padding:.875rem .5rem; border:none; background:transparent; font-family:inherit; font-size:.9375rem; font-weight:600; color:var(--text2); }
.tab-btn.active { background:var(--green); color:#fff; }

.panel { display:none; width:100%; }
.panel.active { display:block; }

.signup-type { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin-bottom:1.125rem; }
.st-btn { border:2px solid var(--border); border-radius:12px; padding:1.125rem .75rem; background:var(--card-bg); text-align:center; cursor:pointer; }
.st-btn.active { border-color:var(--green-text); background:var(--green-l); }
.st-icon { font-size:2.25rem; margin-bottom:.5rem; }
.st-title { font-weight:700; font-size:.9375rem; margin-bottom:.25rem; }
.st-btn.active .st-title { color:var(--green-text); }
.st-sub { font-size:.75rem; color:var(--text2); }

.info-box { border-radius:var(--rs); padding:.875rem; display:flex; gap:.625rem; font-size:.85rem; margin-bottom:1rem; }
.info-box.green { background:var(--green-l); color:var(--green-text); }
.info-box.red { background:var(--red-l); color:var(--red-text); }

.section-title { font-weight:700; font-size:.9rem; color:var(--text); margin:1.125rem 0 .75rem; display:flex; align-items:center; gap:.375rem; }
.section-title:first-child { margin-top:0; }
.dual-name-info { background:var(--blue-l); color:var(--blue-text); border-radius:var(--rs); padding:.75rem; display:flex; gap:.5rem; font-size:.8125rem; margin-bottom:.875rem; }

.progress-bar { height:5px; background:var(--input); border-radius:3px; margin-bottom:1rem; overflow:hidden; }
.progress-fill { height:100%; background:var(--green); border-radius:3px; transition:width .3s; }
.steps { display:flex; justify-content:space-between; margin-bottom:1.5rem; }
.step { flex:1; text-align:center; }
.step-c { width:28px; height:28px; border-radius:50%; background:var(--input); color:var(--text2); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.8125rem; margin:0 auto .375rem; }
.step.done .step-c { background:var(--green); color:#fff; }
.step.active .step-c { background:var(--green); color:#fff; box-shadow:0 0 0 4px var(--green-l); }
.step-lbl { font-size:.7rem; color:var(--text2); }

.otp-group { display:flex; gap:.5rem; justify-content:center; margin-top:.75rem; }
.otp-input { width:44px; height:52px; text-align:center; font-size:1.375rem; font-weight:700; border:1.5px solid var(--border); border-radius:var(--rs); background:var(--input); color:var(--text); }
.otp-input:focus { border-color:var(--green); outline:none; background:var(--card-bg); }

.terms-row { display:flex; gap:.625rem; align-items:flex-start; margin-bottom:1.25rem; }
.terms-row input { margin-top:.25rem; }
.terms-text { font-size:.8125rem; color:var(--text2); line-height:1.5; }
.terms-text a { color:var(--green-text); font-weight:600; }

.success-box { text-align:center; padding:1rem 0; }
.id-badge { background:var(--green-l); border:1.5px dashed var(--green-text); border-radius:var(--r); padding:1rem; margin-bottom:1.25rem; }
.id-label { font-size:.8125rem; color:var(--green-text); font-weight:600; margin-bottom:.5rem; }
.id-value { font-family:'Poppins',sans-serif; font-weight:800; font-size:1.375rem; color:var(--green-text); margin-bottom:.625rem; letter-spacing:.5px; }
.id-copy { background:var(--green); color:#fff; border:none; padding:.5rem 1rem; border-radius:var(--rs); font-family:inherit; font-weight:600; font-size:.8125rem; }

.bottom-switch { text-align:center; margin-top:1.25rem; font-size:.875rem; color:var(--text2); }
.bottom-switch a { color:var(--green-text); font-weight:700; cursor:pointer; }
.btn-sm-back { width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:var(--card-bg); color:var(--text); font-size:1rem; flex-shrink:0; }
.divider { text-align:center; color:var(--text3); font-size:.8rem; margin:1rem 0; position:relative; }
.divider::before, .divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:var(--border); }
.divider::before { left:0; } .divider::after { right:0; }

/* ===== Role illustrations (Teacher / Student / Guardian) — see includes/auth-slider.php ===== */
.role-img { display:block; border-radius:50%; clip-path:circle(49.5% at 50% 50%); object-fit:cover; background:transparent; }

/* ===== Softer, Facebook-clean form controls on every auth page ===== */
.auth-body .form-input, .auth-body .form-select { background:var(--card-bg); border:1px solid var(--border); border-radius:.75rem; padding:.8rem 1rem; }
.auth-body .form-input:focus, .auth-body .form-select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(0,106,78,.15); }
.auth-body .btn-primary { border-radius:999px; padding:.85rem 1rem; font-size:1rem; }
.auth-body .btn-outline { border-radius:999px; padding:.8rem 1rem; }
.auth-body .card { border-radius:1.25rem; }

/* ===== LOGIN: one rounded card — form on the left, picture slider on the right ===== */
.auth-stage { min-height:calc(100vh - 4.5rem); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:1.5rem 1rem 1rem; }
.auth-card { display:grid; grid-template-columns:minmax(0,1fr); width:min(60rem,100%); background:var(--card-bg); border:1px solid var(--border); border-radius:1.5rem; box-shadow:var(--shadow-md); overflow:hidden; }
.auth-card-form { padding:1.5rem 1.25rem 1.75rem; display:flex; flex-direction:column; justify-content:center; max-width:28rem; width:100%; margin:0 auto; }
.auth-welcome { font-family:'Poppins','Hind Siliguri',sans-serif; font-size:1.75rem; font-weight:800; margin:0 0 .25rem; color:var(--text); }
.auth-welcome-sub { margin:0 0 1.25rem; color:var(--text2); font-size:.95rem; }
.auth-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin:.25rem 0 1.125rem; font-size:.875rem; }
.auth-remember { display:flex; align-items:center; gap:.5rem; color:var(--text2); cursor:pointer; }
.auth-remember input { width:1rem; height:1rem; accent-color:var(--green); }
.auth-link { color:var(--green-text); font-weight:700; }
.auth-create { display:block; text-align:center; margin-top:.875rem; text-decoration:none; }

.auth-art, .auth-strip-item .role-img + * { }
.auth-art { display:none; }
.auth-strip { display:flex; justify-content:center; gap:1.25rem; padding:1.25rem 1rem 0; order:-1; }
.auth-strip-item { display:flex; flex-direction:column; align-items:center; gap:.25rem; font-size:.75rem; font-weight:600; color:var(--text2); }
.auth-strip-item .role-img { width:60px; height:60px; }

@media (min-width:900px) {
  .auth-card { grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:34rem; }
  .auth-card-form { padding:2.5rem 2.5rem; max-width:none; margin:0; }
  .auth-strip { display:none; }
  .auth-art { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; background:var(--green-l); padding:2rem 1.5rem; text-align:center; border-left:1px solid var(--border); }
  .auth-art-title { font-family:'Poppins','Hind Siliguri',sans-serif; font-weight:800; font-size:1.25rem; color:var(--green-text); }
  .auth-slides { position:relative; width:100%; min-height:22rem; }
  .auth-slide { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; margin:0; opacity:0; transform:translateX(1.5rem); transition:opacity .45s ease, transform .45s ease; pointer-events:none; }
  .auth-slide.active { opacity:1; transform:none; pointer-events:auto; }
  .auth-slide .role-img { width:15rem; height:15rem; background:var(--card-bg); box-shadow:var(--shadow-md); }
  .auth-slide figcaption b { display:block; font-size:1.25rem; color:var(--text); }
  .auth-slide figcaption p { margin:.25rem auto 0; max-width:20rem; color:var(--text2); font-size:.95rem; line-height:1.55; }
  .auth-art-ctl { display:flex; align-items:center; gap:.875rem; }
  .auth-arrow { width:2.25rem; height:2.25rem; border-radius:50%; border:1px solid var(--border); background:var(--card-bg); color:var(--text); font-size:1.25rem; line-height:1; display:flex; align-items:center; justify-content:center; }
  .auth-arrow:hover { background:var(--green); color:#fff; border-color:var(--green); }
  .auth-dots { display:flex; gap:.5rem; }
  .auth-dot { width:.625rem; height:.625rem; border-radius:50%; border:none; padding:0; background:var(--border); }
  .auth-dot.active { background:var(--green); width:1.5rem; border-radius:.5rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-slide { transition:none; } }

/* ===== SIGNUP (and forgot / reset / OTP): Facebook-style clean single column ===== */
.auth-main { max-width:30rem; }

/* signup step 1: the role cards carry the same pictures instead of emoji */
.st-pics { display:flex; justify-content:center; align-items:center; margin-bottom:.5rem; min-height:72px; }
.st-pics .role-img { width:68px; height:68px; }
.st-pics .role-img + picture .role-img, .st-pics picture + picture { margin-left:-14px; }
@media (prefers-reduced-motion: no-preference) { .st-btn .role-img { transition: transform .2s ease; } .st-btn.active .role-img { transform: scale(1.06); } }

/* date of birth: three selects in one row (optional) */
.dob-row { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:.5rem; }
