/* Tutor24Hour account/authentication UI owner. Keep account access, registration,
   recovery and access-denied presentation here instead of leaking through site.css. */
.account-auth-page,
.auth-entry-page{
  --account-auth-text:#172033;
  --account-auth-heading:#101828;
  --account-auth-muted:#596579;
  --account-auth-border:#d7dee8;
  --account-auth-border-strong:#7c8797;
  --account-auth-surface:#ffffff;
  --account-auth-subtle:#f8fafc;
  --account-auth-accent:#0b57d0;
  --account-auth-accent-hover:#0847ad;
  --account-auth-danger:#b42318;
  --account-auth-success:#157347;
  --account-auth-warning:#9a6700;
  color:var(--account-auth-text);
}

.account-auth-page{
  width:min(100% - 2rem,760px);
  margin:clamp(2rem,5vw,4.25rem) auto clamp(3rem,7vw,5rem);
}
.account-auth-page-wide{width:min(100% - 2rem,980px)}
.account-auth-shell{display:grid;gap:1rem}
.account-auth-panel{
  border:1px solid var(--account-auth-border);
  border-radius:18px;
  background:var(--account-auth-surface);
  box-shadow:0 8px 26px rgba(16,24,40,.06);
  padding:clamp(1.25rem,3vw,2rem);
}
.account-auth-brand{
  margin:0 0 .55rem;
  color:var(--account-auth-accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.account-auth-header{margin-bottom:1.5rem}
.account-auth-header h1{
  margin:0;
  color:var(--account-auth-heading);
  font-size:clamp(1.8rem,4vw,2.5rem);
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:760;
}
.account-auth-header p:last-child{
  max-width:62ch;
  margin:.7rem 0 0;
  color:var(--account-auth-muted);
  line-height:1.6;
}
.account-auth-alert{border-radius:12px;margin-bottom:1rem}
.account-auth-form{display:grid;gap:1rem}
.account-auth-field{display:grid;align-content:start;gap:.42rem}
.account-auth-field .form-label{margin:0;color:var(--account-auth-heading);font-weight:700}
.account-auth-field .form-control,
.account-auth-field .form-select,
.account-auth-form .form-control,
.account-auth-form .form-select{
  min-height:46px;
  border-color:var(--account-auth-border-strong);
  border-radius:10px;
  color:var(--account-auth-heading);
  background:#fff;
}
.account-auth-field textarea.form-control,
.account-auth-form textarea.form-control{min-height:112px}
.account-auth-field .form-control:focus,
.account-auth-field .form-select:focus,
.account-auth-form .form-control:focus,
.account-auth-form .form-select:focus{
  border-color:var(--account-auth-accent);
  box-shadow:0 0 0 .2rem rgba(11,87,208,.16);
}
.account-auth-validation{color:var(--account-auth-danger);font-size:.86rem}
.account-auth-validation ul{margin:0;padding-left:1.15rem}
.account-auth-meta-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.account-auth-link{color:var(--account-auth-accent);font-weight:700;text-decoration:none}
.account-auth-link:hover{color:var(--account-auth-accent-hover);text-decoration:underline;text-underline-offset:3px}
.account-auth-primary,
.account-auth-secondary{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border-radius:10px;
  padding:.68rem 1rem;
  font-weight:750;
  text-decoration:none;
}
.account-auth-primary{border:1px solid var(--account-auth-accent);background:var(--account-auth-accent);color:#fff}
.account-auth-primary:hover{border-color:var(--account-auth-accent-hover);background:var(--account-auth-accent-hover);color:#fff}
.account-auth-secondary{border:1px solid var(--account-auth-border-strong);background:#fff;color:#344054}
.account-auth-secondary:hover{border-color:#98a2b3;color:var(--account-auth-heading);background:var(--account-auth-subtle)}
.account-auth-primary:focus-visible,
.account-auth-secondary:focus-visible,
.account-auth-link:focus-visible,
.account-intent-option:focus-within{
  outline:3px solid rgba(11,87,208,.28);
  outline-offset:3px;
}
.account-auth-divider{height:1px;background:var(--account-auth-border);margin:.35rem 0}
.account-auth-footer{display:grid;gap:.55rem;padding-top:.15rem;text-align:center;color:var(--account-auth-muted);font-size:.9rem}
.account-auth-footer-actions{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap}
.account-auth-status{
  display:grid;
  gap:.8rem;
  text-align:center;
  justify-items:center;
  padding:.5rem 0;
}
.account-auth-status-icon{
  width:54px;height:54px;display:grid;place-items:center;border-radius:50%;
  background:#eef4ff;color:var(--account-auth-accent);border:1px solid #c9dafe;
}
.account-auth-status-icon svg{width:24px;height:24px}
.account-auth-status h1{margin:0;color:var(--account-auth-heading);font-size:clamp(1.65rem,3vw,2.15rem);font-weight:760}
.account-auth-status p{max-width:56ch;margin:0;color:var(--account-auth-muted);line-height:1.6}
.account-auth-status-actions{display:flex;justify-content:center;gap:.65rem;flex-wrap:wrap;margin-top:.35rem}

.account-auth-section{display:grid;gap:1rem;padding:1.35rem 0;border-top:1px solid var(--account-auth-border)}
.account-auth-section:first-of-type{padding-top:0;border-top:0}
.account-auth-section-heading{display:grid;gap:.25rem}
.account-auth-section-heading h2{margin:0;color:var(--account-auth-heading);font-size:1.05rem;font-weight:760}
.account-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem}
.account-auth-grid .account-auth-field-full{grid-column:1 / -1}
.account-auth-submit-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-top:.35rem}
.account-auth-submit-row .account-auth-primary{min-width:190px}

.account-intent-panel{
  border:1px solid #c9dafe;
  border-radius:14px;
  padding:1rem;
  background:#f7faff;
}
.account-intent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.account-intent-option{
  position:relative;
  min-height:58px;
  display:flex;
  align-items:flex-start;
  gap:.65rem;
  border:1px solid var(--account-auth-border);
  border-radius:12px;
  background:#fff;
  padding:.8rem .9rem;
}
.account-intent-option:hover{border-color:#aab9cb}
.account-intent-option .form-check-input{margin:.2rem 0 0;flex:0 0 auto}
.account-intent-option .form-check-label{display:grid;gap:.18rem;color:var(--account-auth-heading);font-weight:720;line-height:1.35}
.account-intent-option .form-check-label small{color:var(--account-auth-muted);font-weight:500;line-height:1.45}
.account-intent-option:has(.form-check-input:checked){border-color:var(--account-auth-accent);box-shadow:inset 0 0 0 1px var(--account-auth-accent);background:#f7faff}
.account-intent-option:has(.form-check-input:checked) .form-check-label{color:#083b8c}
.account-intent-tutor{border-style:dashed}

.account-auth-consent{
  display:grid;
  gap:.45rem;
  border:1px solid var(--account-auth-border);
  border-radius:12px;
  padding:.9rem 1rem;
  background:var(--account-auth-subtle);
}
.account-auth-consent .form-check{margin:0}
.account-auth-consent .form-check-label{color:var(--account-auth-heading);line-height:1.5}
.account-auth-consent-note{color:var(--account-auth-muted);font-size:.82rem;line-height:1.5}
.account-auth-consent-note a{color:var(--account-auth-accent);font-weight:700}

.password-field-group{position:relative}
.password-field-group .form-control{padding-right:3rem}
.password-toggle-btn{
  position:absolute;top:50%;right:.45rem;transform:translateY(-50%);
  width:2rem;height:2rem;display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:7px;background:transparent;color:#475569;line-height:1;padding:0;cursor:pointer;
}
.password-toggle-btn:hover{background:#eef2f6;color:#172033}
.password-toggle-btn:focus-visible{outline:2px solid var(--account-auth-accent);outline-offset:2px}
.password-toggle-icon{width:1.15rem;height:1.15rem;display:block;pointer-events:none}
.password-toggle-icon-hide{display:none}
.password-toggle-btn[data-password-visible="true"] .password-toggle-icon-show{display:none}
.password-toggle-btn[data-password-visible="true"] .password-toggle-icon-hide{display:block}
.password-strength-wrap{margin-top:.7rem;padding:.85rem .9rem;border:1px solid var(--account-auth-border);border-radius:12px;background:var(--account-auth-subtle)}
.password-strength-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}
.password-strength-label{font-size:.82rem;color:var(--account-auth-muted);font-weight:700}
.password-meter-track{width:100%;height:.45rem;border-radius:999px;background:#d9e0e8;overflow:hidden}
.password-meter-fill{--password-meter-color:#b6c0cc;display:block;width:100%;height:100%;border:0;border-radius:999px;appearance:none;-webkit-appearance:none;background:transparent}
.password-meter-fill::-webkit-progress-bar{background:#d9e0e8;border-radius:999px}
.password-meter-fill::-webkit-progress-value{background:var(--password-meter-color);border-radius:999px}
.password-meter-fill::-moz-progress-bar{background:var(--password-meter-color);border-radius:999px}
.password-meter-fill.is-weak{--password-meter-color:#b42318}.password-meter-fill.is-fair{--password-meter-color:#b54708}.password-meter-fill.is-strong{--password-meter-color:#175cd3}.password-meter-fill.is-very-strong{--password-meter-color:#157347}
.password-rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.35rem .9rem;list-style:none;padding:0;margin:.75rem 0 0}
.password-rules li,.password-match-hint,.caps-lock-warning{font-size:.82rem}
.password-rules li{color:var(--account-auth-muted)}
.password-rules li.is-met{color:var(--account-auth-success);font-weight:650}
.password-rule-icon{display:inline-block;width:1rem}
.password-match-status{display:inline-flex;align-items:center;gap:.4rem;margin-top:.5rem;color:var(--account-auth-muted);font-size:.82rem}
.password-match-status::before{content:'•';font-size:1.1rem;line-height:1}
.password-match-status.is-match{color:var(--account-auth-success)}
.password-match-status.is-match::before{content:'✓'}
.password-match-status.is-mismatch{color:var(--account-auth-danger)}
.password-match-status.is-mismatch::before{content:'!'}
.caps-lock-warning{margin-top:.45rem;color:var(--account-auth-warning);font-weight:650}

/* Role-selection entry pages. */
.auth-entry-page{width:min(100% - 2rem,880px);margin:clamp(2.25rem,6vw,5rem) auto clamp(3rem,7vw,6rem)}
.auth-entry-header{max-width:660px;margin-bottom:1.75rem}
.auth-entry-kicker{margin:0 0 .55rem;color:var(--account-auth-accent);font-size:.75rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.auth-entry-header h1{margin:0;color:var(--account-auth-heading);font-size:clamp(2rem,4vw,3rem);line-height:1.06;letter-spacing:-.04em;font-weight:760}
.auth-entry-header>p:last-child{max-width:60ch;margin:.8rem 0 0;color:var(--account-auth-muted);font-size:1.02rem;line-height:1.6}
.auth-entry-alert{margin-bottom:1.25rem;border-radius:.65rem}
.auth-entry-options{display:grid;border:1px solid var(--account-auth-border);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.auth-entry-option{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:1rem;min-height:112px;padding:1.1rem 1.2rem;color:var(--account-auth-text);text-decoration:none;border-top:1px solid #e4e7ec;background:#fff;transition:background-color .15s ease,border-color .15s ease}
.auth-entry-option:first-child{border-top:0}.auth-entry-option:hover{background:var(--account-auth-subtle);color:var(--account-auth-heading)}
.auth-entry-option:focus-visible{position:relative;z-index:1;outline:3px solid rgba(11,87,208,.32);outline-offset:-3px}
.auth-entry-icon{width:46px;height:46px;display:grid;place-items:center;border:1px solid #c9dafe;border-radius:11px;background:#eef4ff;color:var(--account-auth-accent)}
.auth-entry-icon svg{width:22px;height:22px;stroke-width:2}.auth-entry-option-copy{display:grid;gap:.28rem;min-width:0}
.auth-entry-option-copy strong{font-size:1.04rem;line-height:1.3;font-weight:760}.auth-entry-option-copy small{max-width:52ch;color:var(--account-auth-muted);font-size:.88rem;line-height:1.5}
.auth-entry-action{display:inline-flex;align-items:center;gap:.45rem;color:var(--account-auth-accent);font-size:.88rem;font-weight:740;white-space:nowrap}
.auth-entry-option-primary .auth-entry-icon{background:var(--account-auth-accent);border-color:var(--account-auth-accent);color:#fff}
.auth-entry-secondary{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-top:1rem;padding:1.2rem 1.3rem;border:1px solid var(--account-auth-border);border-radius:12px;background:var(--account-auth-subtle)}
.auth-entry-secondary h2{margin:0 0 .25rem;font-size:1rem;font-weight:750;color:var(--account-auth-heading)}.auth-entry-secondary p{margin:0;color:var(--account-auth-muted);font-size:.86rem;line-height:1.5}
.auth-entry-secondary-actions{display:flex;flex-wrap:wrap;gap:.55rem;flex:0 0 auto}.auth-entry-secondary-actions a{display:inline-flex;align-items:center;min-height:40px;padding:.5rem .8rem;border:1px solid var(--account-auth-border-strong);border-radius:8px;background:#fff;color:#344054;text-decoration:none;font-size:.85rem;font-weight:700}
.auth-entry-secondary-actions a:hover{border-color:#98a2b3;color:var(--account-auth-heading)}.auth-entry-existing{margin:1.1rem 0 0;color:#667085;font-size:.88rem;text-align:center}.auth-entry-existing a{color:var(--account-auth-accent);font-weight:700}

@media(max-width:767.98px){
  .account-auth-page{width:min(100% - 1.25rem,760px);margin-top:1.25rem}
  .account-auth-panel{padding:1.1rem;border-radius:14px}
  .account-auth-grid,.account-intent-grid{grid-template-columns:1fr}
  .account-auth-grid .account-auth-field-full{grid-column:auto}
  .account-auth-submit-row{align-items:stretch;flex-direction:column}
  .account-auth-submit-row .account-auth-primary{width:100%}
  .auth-entry-page{margin-top:2rem}.auth-entry-option{grid-template-columns:44px minmax(0,1fr);min-height:0;padding:1rem}.auth-entry-action{grid-column:2;white-space:normal}.auth-entry-secondary{align-items:flex-start;flex-direction:column}.auth-entry-secondary-actions{width:100%}.auth-entry-secondary-actions a{flex:1 1 180px;justify-content:center}
}

/* Accessible touch target for password visibility. */
.password-field-group input{padding-right:3.5rem}
.password-toggle-btn{width:44px;height:44px}
