/* =========================================================
   NEXTGEN VIRTUAL ACADEMY — LOGIN & REGISTRATION DESIGN
   Replace: css/auth.css
   Visual design only. Login and registration JavaScript is unchanged.
   ========================================================= */

:root {
  --navy: #111b35;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --muted: #60708a;
  --line: #dbe4f0;
  --bg: #f4f7fb;
  --success: #087f4a;
  --error: #c43a47;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
  min-height: 100vh;
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 46px clamp(34px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 13%, #438aff 0, transparent 25%),
    linear-gradient(135deg, #101d46, #1e408e 60%, #2563eb);
}

.auth-showcase::after {
  position: absolute;
  right: -145px;
  bottom: -175px;
  width: 390px;
  height: 390px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgb(255 255 255 / 4%), 0 0 0 85px rgb(255 255 255 / 3%);
  content: "";
}

/* Brand mark and centred tagline. */
.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  color: #fff;
  text-decoration: none;
}

.auth-brand img {
  width: 72px;
  height: 72px;
  padding: 5px;
  border-radius: 17px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 9px 20px rgb(15 23 42 / 19%);
}

.auth-brand > span {
  position: relative;
  display: block;
  width: max-content;
  padding-bottom: 19px;
}

.auth-brand strong {
  display: block;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -.7px;
}

.auth-brand em {
  color: #a9c8ff;
  font-style: normal;
}

.auth-brand small {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  margin: 0;
  color: #d4e2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .85px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: auto 0;
}

.showcase-copy .eyebrow {
  display: none;
}

.showcase-copy h1 {
  margin: 0;
  font-size: clamp(37px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -2px;
}

.showcase-copy h1 span { color: #a9c8ff; }

.showcase-copy > p:not(.eyebrow) {
  margin: 20px 0 28px;
  color: #e1ebff;
  font-size: 17px;
  line-height: 1.65;
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6efff;
  font-size: 14px;
}

.benefits b {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  background: rgb(255 255 255 / 17%);
  color: #fff;
}

.showcase-footer {
  position: relative;
  z-index: 1;
  color: #cadaf9;
  font-size: 12px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 7%;
  background: #fff;
}

.auth-card { width: min(100%, 465px); }
.auth-card .mobile-brand { display: none; }

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -1.2px;
}

.auth-card > .intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.auth-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }

.field label {
  color: #354965;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #ccd9ea;
  border-radius: 10px;
  outline: 0;
  color: var(--navy);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #dceaff;
}

.field input::placeholder { color: #99a8bc; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }

.toggle-password {
  position: absolute;
  right: 8px;
  bottom: 6px;
  border: 0;
  padding: 9px;
  background: transparent;
  color: #52647e;
  font: 700 12px Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.toggle-password:hover { color: var(--blue); }

.auth-submit {
  min-height: 49px;
  margin-top: 5px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 800 15px Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 17px rgb(37 99 235 / 18%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.auth-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.auth-submit:disabled { cursor: wait; opacity: .7; }
.form-status { min-height: 22px; margin: 0; font-size: 13px; font-weight: 700; }
.form-status.error { color: var(--error); }
.form-status.success { color: var(--success); }

.auth-switch {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch a { color: var(--blue); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-note {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f4f7fc;
  color: #63748e;
  font-size: 12px;
  line-height: 1.45;
}

.auth-note strong { color: #354965; }
.home-link { display: inline-block; margin-top: 20px; color: #536681; font-size: 13px; font-weight: 700; text-decoration: none; }
.home-link:hover { color: var(--blue); }

@media (max-width: 850px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-panel { min-height: 100vh; padding: 36px 7%; }
  .auth-card .mobile-brand { display: flex; margin-bottom: 48px; color: var(--navy); }
  .auth-brand em { color: var(--blue); }
  .auth-brand small { color: #64748b; }
  .auth-brand img { box-shadow: 0 8px 16px rgb(15 23 42 / 10%); }
}

@media (max-width: 480px) {
  .auth-panel { padding: 27px 6%; }
  .auth-card .mobile-brand { margin-bottom: 38px; }
  .auth-brand { gap: 11px; }
  .auth-brand img { width: 54px; height: 54px; border-radius: 13px; }
  .auth-brand strong { font-size: 19px; }
  .auth-brand small { font-size: 8px; }
  .auth-card h2 { font-size: 29px; }
  .two-fields { grid-template-columns: 1fr; }
}
