* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  min-height: 100%;
  font-family: Sora, Arial, sans-serif;
  background: #f7f8fb;
  color: #111827;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html {
  overflow-y: scroll;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body.auth-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(380px, 470px);
  overflow-x: hidden;
  background: #fff;
}
body.auth-forgot {
  grid-template-columns: 1fr;
  background: #fff;
}
a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 700;
}
.auth-visual {
  position: relative;
  min-height: 100vh;
  background: #111;
  overflow: hidden;
  color: #fff;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/school1.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.auth-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18, 8, 10, 0.92) 0%,
      rgba(72, 12, 14, 0.82) 26%,
      rgba(120, 28, 18, 0.58) 55%,
      rgba(30, 18, 14, 0.38) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.1) 42%,
      rgba(0, 0, 0, 0.62) 100%
    );
}
.auth-visual-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(36px, 6vw, 78px);
}
.auth-visual-brand {
  position: absolute;
  top: 40px;
  left: clamp(28px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.auth-visual-brand img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 72px;
}
.auth-visual-divider {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.82);
  flex: 0 0 1px;
}
.auth-visual-brand strong {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}
.auth-visual-brand strong span {
  color: #e30613;
  font-weight: 800;
}
.auth-visual-brand p {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.school-title {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  max-width: 620px;
}
.school-kicker {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
}
.school-kicker:after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  background: #e30613;
  margin-top: 16px;
}
.school-copy {
  max-width: 540px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
.guest-browse-btn {
  width: fit-content;
  min-width: 236px;
  height: 50px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 9, 9, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.guest-browse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.guest-browse-btn i:first-child {
  font-size: 19px;
}
.guest-browse-btn i:last-child {
  margin-left: 6px;
}
.request-card {
  width: min(410px, 100%);
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}
.request-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.request-card h3 i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.request-list {
  display: grid;
  gap: 14px;
  list-style: none;
}
.request-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}
.request-list span {
  width: 24px;
  height: 24px;
  border: 1px solid #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}
.help-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #fff;
}
.help-line i {
  width: 28px;
  height: 28px;
  border: 1px solid #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
body.auth-login .auth-panel,
body.auth-signup .auth-panel {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(20px, 3vw, 40px);
}
body.auth-forgot .auth-panel {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
body.auth-signup .request-card {
  margin-top: 24px;
  padding: 18px 24px;
}
body.auth-login .auth-visual-inner,
body.auth-signup .auth-visual-inner {
  justify-content: flex-start;
  padding-top: 208.1px;
  padding-bottom: 40px;
}
body.auth-login .school-copy,
body.auth-signup .school-copy {
  margin-top: 18px;
}
body.auth-signup .request-list {
  gap: 10px;
}
body.auth-signup .help-line {
  margin-top: 16px;
  padding-top: 14px;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.auth-forgot .auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 38px 34px;
  border: 1px solid #eef2f7;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}
.auth-brand {
  display: none;
}
.auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-brand strong {
  display: block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}
.auth-brand .brand-accent {
  display: inline;
  margin-top: 0;
  color: #e30613;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: none;
}
.auth-brand .auth-brand-sub {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.auth-center-logo {
  display: block;
  flex: 0 0 125px;
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  height: 125px;
  min-height: 125px;
  max-height: 125px;
  object-fit: contain;
  align-self: center;
  margin: 0 auto;
  border-radius: 50%;
}
.auth-center-logo-link {
  width: fit-content;
  display: block;
  align-self: center;
  margin: 0 auto;
  text-decoration: none;
}
body.auth-forgot .auth-center-logo {
  margin-bottom: 28px;
}
.auth-card h1 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-align: center;
}
.auth-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 30px;
  text-align: center;
}
body.auth-forgot .auth-sub {
  margin-bottom: 26px;
}
.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}
.control {
  position: relative;
}
.control > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #64748b;
  pointer-events: none;
}
.control input,
.control select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  outline: none;
  padding: 0 14px 0 42px;
  transition:
    border 0.18s,
    box-shadow 0.18s;
}
.control select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}
.control input:focus,
.control select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.control input::placeholder {
  color: #8a97aa;
}
.select-chevron {
  position: absolute;
  right: 6px;
  top: 0;
  width: 36px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 13px;
  pointer-events: none;
}
.select-chevron i {
  position: static;
  transform: none;
  font-size: 13px;
  color: inherit;
  pointer-events: none;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.password-toggle i {
  position: static;
  transform: none;
  font-size: 14px;
  pointer-events: none;
}
.password-toggle:hover {
  background: #f1f5f9;
}
.control.has-toggle input {
  padding-right: 52px;
}
.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: -4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.42;
}
.terms-check input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #dc2626;
}
.terms-check input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #e30613;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.primary-btn:hover {
  background: #bd0610;
  transform: translateY(-1px);
}
.primary-btn:active {
  transform: translateY(0);
}
.ghost-btn {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.ghost-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.ghost-btn:active {
  transform: translateY(0);
}
.google-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  color: #94a3b8;
  font-size: 12px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: #e5e7eb;
}
.review-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
}
.auth-switch {
  text-align: center;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}
.auth-switch a {
  margin-left: 3px;
}
.login-submit {
  margin-top: 10px;
}
.login-after {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.login-after .divider {
  margin: 0;
  padding: 0 0 2px;
}
.login-after .auth-switch {
  margin-top: 2px;
}
.register-submit {
  margin-top: 6px;
}
.register-after {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.register-after .divider {
  margin: 0;
  padding: 0 0 2px;
}
.register-after .review-note {
  margin-top: -4px;
}
.register-after .auth-switch {
  margin-top: 2px;
}

.otp-card .auth-sub {
  margin-bottom: 16px;
}

.otp-card .alert {
  margin-bottom: 14px;
}

.otp-card .auth-form {
  gap: 12px;
}

.otp-card .field {
  gap: 6px;
}

.otp-card .field label {
  margin-bottom: 0;
}

.otp-card .auth-form > .auth-sub {
  margin: 2px 0 16px;
  line-height: 1.45;
}

.otp-card .register-submit {
  margin-top: 2px;
}

.otp-card .ghost-btn {
  margin-top: 2px;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  font-size: 13px;
  color: #475569;
}
.login-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-options input {
  width: 16px;
  height: 16px;
  accent-color: #e30613;
}
.login-options a {
  font-size: 13px;
  color: #e30613;
}
.pw-bar {
  height: 4px;
  background: #edf0f5;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.match-bar {
  margin-top: 4px;
}
.pw-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition:
    width 0.25s,
    background 0.25s;
}
.pw-lbl {
  font-size: 10px;
  margin-top: 2px;
  min-height: 11px;
}
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-bg.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 8px;
  width: 560px;
  max-width: calc(100vw - 40px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.modal-hdr {
  padding: 30px 30px 14px;
  border-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
}
.modal-hdr h2 {
  font-size: 22px;
  font-weight: 600;
  flex: 1;
  color: #1f2937;
  line-height: 1.2;
}
.modal-body {
  padding: 8px 30px 20px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.72;
  color: #666;
  background: #fff;
  max-height: min(54vh, 430px);
}
.modal-body h3 {
  font-size: 14px;
  color: #293241;
  margin: 0 0 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.terms-lead {
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777;
}
.terms-section {
  padding: 13px 0;
  border-top: 0;
}
.modal-body ul {
  padding-left: 18px;
}
.modal-ftr {
  padding: 18px 30px 24px;
  border-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
}
.modal-btn {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d7dee9;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 800;
  min-width: 150px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.modal-ftr .modal-btn {
  flex: 1 1 0;
}
.modal-btn.primary {
  background: linear-gradient(180deg, #ef2330 0%, #d90416 100%);
  border-color: #d90416;
  color: #fff;
  box-shadow: none;
}
.modal-btn.primary:hover {
  background: linear-gradient(180deg, #dc101d 0%, #b90512 100%);
  border-color: #b90512;
  box-shadow: none;
  transform: translateY(-2px);
}
.modal-btn.light {
  background: #ffffff;
  color: #475569;
  border-color: #d7dee9;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}
.modal-btn.light:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.modal-btn:active {
  transform: translateY(0);
}
.modal-hdr .modal-btn.light {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #475569;
  box-shadow: none;
}
.modal-hdr .modal-btn.light:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}
.modal-hdr .modal-btn.light i {
  font-size: 13px;
}
@media (max-width: 980px) {
  body.auth-body {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 30px 16px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-panel {
    align-items: flex-start;
    padding: 24px 14px;
  }
  .field.full {
    grid-column: auto;
  }
  .auth-card {
    padding-bottom: 20px;
  }
  .modal-bg {
    padding: 18px 12px;
  }
  .modal {
    width: 100%;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 36px);
  }
  .modal-hdr {
    padding: 26px 22px 12px;
  }
  .modal-body {
    padding: 6px 22px 18px;
    max-height: calc(100dvh - 210px);
  }
  .modal-ftr {
    padding: 14px 22px 22px;
    gap: 12px;
  }
  .modal-btn {
    min-width: 0;
    padding: 0 14px;
  }
  body.auth-forgot .auth-panel {
    align-items: center;
    padding: 24px 14px;
  }
  body.auth-forgot .auth-card {
    padding: 32px 24px;
  }
}
