/* ==========================================================================
   AIIONGOLD — login.css
   Sign in / create account page.

   Built on the same design language as the rest of the site: the #EDF3FF
   page wash, navy #1e3a5f headings, gold #d4a24c accents, the icon+rule
   badge, glassy white cards and the navy pill button.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

.auth {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  background: #edf3ff;
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

/* soft gold / navy washes, same as the section glows elsewhere */
.auth::before,
.auth::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.auth::before {
  top: -160px;
  right: 24%;
  width: 420px;
  height: 420px;
  background: rgba(212, 162, 76, 0.18);
}

.auth::after {
  bottom: -180px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: rgba(30, 58, 95, 0.12);
}

/* ==========================================================================
   LEFT — brand showcase
   ========================================================================== */
.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 40px 52px;
  overflow: hidden;
  isolation: isolate;
}

.auth__brandMedia {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.auth__brandMedia video,
.auth__brandMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The hero uses a light wash over the video; here it needs a vertical pass
   as well so the logo row and the stats row stay legible over the darker
   parts of the footage. */
.auth__brandMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(237, 243, 255, 0.7) 0%,
      rgba(237, 243, 255, 0.35) 40%,
      rgba(237, 243, 255, 0.6) 78%,
      rgba(237, 243, 255, 0.93) 100%
    ),
    linear-gradient(
      160deg,
      rgba(237, 243, 255, 0.94) 0%,
      rgba(237, 243, 255, 0.86) 38%,
      rgba(237, 243, 255, 0.6) 72%,
      rgba(237, 243, 255, 0.42) 100%
    );
}

.auth__brandTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth__logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 162, 76, 0.5);
  background: rgba(255, 255, 255, 0.7);
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.auth__back:hover {
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #fff;
  border-color: transparent;
}

.auth__brandBody {
  display: flex;
  flex-direction: column;
  max-width: 540px;
}

/* the site-wide badge: gold rounded square + rule + uppercase navy label */
.auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.auth__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #1e3a5f;
}

.auth__badge-text {
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
  color: #1e3a5f;
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth__brandTitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.4px;
  color: #1e3a5f;
  margin-bottom: 14px;
}

.auth__brandTitle span { color: #d4a24c; }

.auth__underline {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: #d4a24c;
  margin-bottom: 18px;
}

.auth__brandText {
  font-size: 15px;
  line-height: 1.8;
  color: #5b6472;
  margin-bottom: 26px;
}

.auth__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth__point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth__point:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.14),
    0 0 0 1px rgba(212, 162, 76, 0.45) inset;
}

.auth__pointIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #1e3a5f;
  color: #f0c37a;
}

.auth__pointTitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 2px;
}

.auth__pointDesc {
  font-size: 12.5px;
  line-height: 1.6;
  color: #5b6472;
}

.auth__brandFoot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.auth__stat {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.auth__stat strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #d4a24c;
}

.auth__stat span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b7688;
}

.auth__statDot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.22);
}

/* ==========================================================================
   RIGHT — form panel
   ========================================================================== */
.auth__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 44px 56px;
  overflow-y: auto;
}

.auth__card {
  width: 100%;
  max-width: 452px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth__head {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #1e3a5f;
}

.auth__sub {
  font-size: 14.5px;
  line-height: 1.7;
  color: #5b6472;
}

/* ---------- tabs ---------- */
.auth__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.auth__tabIndicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: #1e3a5f;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.28);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.auth__tabs[data-active="register"] .auth__tabIndicator {
  transform: translateX(100%);
}

.auth__tab {
  position: relative;
  z-index: 2;
  padding: 11px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5b6472;
  transition: color 0.3s ease;
}

.auth__tab--active { color: #fff; }

/* ---------- form ---------- */
.auth__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(30, 58, 95, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 40px 2px rgba(212, 162, 76, 0.14);
}

.auth__form[hidden] { display: none; }

.auth__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #1e3a5f;
}

.auth__inputWrap { position: relative; }

.auth__inputIcon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #d4a24c;
  pointer-events: none;
}

.auth__input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  border: 1.5px solid rgba(30, 58, 95, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #1e3a5f;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.auth__input::placeholder { color: #9aa5b8; }

.auth__input:focus {
  outline: none;
  background: #fff;
  border-color: #d4a24c;
  box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.16);
}

.auth__input--invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.auth__toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #6b7688;
  transition: color 0.25s ease, background 0.25s ease;
}

.auth__toggle:hover {
  color: #d4a24c;
  background: rgba(212, 162, 76, 0.1);
}

.auth__error {
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
}

.auth__error:empty { display: none; }

/* password strength */
.auth__strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth__strengthBars {
  display: flex;
  gap: 5px;
}

.auth__strengthBar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.12);
  transition: background 0.3s ease;
}

.auth__strengthBar--on-1 { background: #c0392b; }
.auth__strengthBar--on-2 { background: #dd8b2c; }
.auth__strengthBar--on-3 { background: #d4a24c; }
.auth__strengthBar--on-4 { background: #2f9e5f; }

.auth__strengthText {
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7688;
}

/* meta row */
.auth__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: #5b6472;
  cursor: pointer;
}

.auth__check input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #d4a24c;
  cursor: pointer;
}

.auth__link {
  font-size: 13px;
  font-weight: 700;
  color: #d4a24c;
  transition: color 0.25s ease;
}

.auth__link:hover {
  color: #b8853a;
  text-decoration: underline;
}

/* submit — the navy pill used across the site */
.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e3a5f, #2b4c76);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(30, 58, 95, 0.36);
}

.auth__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth__spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: authSpin 0.7s linear infinite;
}

@keyframes authSpin { to { transform: rotate(360deg); } }

/* divider + social */
.auth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #6b7688;
}

.auth__or::before,
.auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(30, 58, 95, 0.12);
}

.auth__socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.auth__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a5f;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.auth__social:hover {
  border-color: rgba(212, 162, 76, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
}

/* notice */
.auth__notice {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.auth__notice--show { display: flex; }

.auth__notice--success {
  background: rgba(47, 158, 95, 0.1);
  border: 1px solid rgba(47, 158, 95, 0.3);
  color: #1c7a45;
}

.auth__notice--error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.28);
  color: #a5321f;
}

.auth__notice svg { flex-shrink: 0; margin-top: 1px; }

.auth__switch {
  text-align: center;
  font-size: 13.5px;
  color: #5b6472;
}

.auth__switch button {
  font-weight: 700;
  color: #d4a24c;
}

.auth__switch button:hover { text-decoration: underline; }

.auth__legal {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6b7688;
}

.auth__legal a { color: #d4a24c; font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1300px) {
  .auth__brand { padding: 34px 38px; }
  .auth__panel { padding: 38px 32px 48px; }
}

@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }

  .auth__brand {
    padding: 26px 28px 32px;
    gap: 24px;
  }

  .auth__points { display: none; }

  .auth__brandBody { max-width: 100%; }

  .auth__brandText { margin-bottom: 18px; }

  .auth__panel { padding: 30px 28px 52px; }

  .auth__card { max-width: 520px; }
}

@media (max-width: 640px) {
  .auth__brand { padding: 20px 18px 26px; gap: 18px; }

  .auth__logo img { height: 48px; }

  .auth__back { padding: 8px 14px; font-size: 12px; }

  .auth__brandTitle { font-size: 22px; }

  .auth__brandText { font-size: 13.5px; line-height: 1.7; }

  .auth__brandFoot { gap: 14px; }

  .auth__stat strong { font-size: 17px; }

  .auth__stat span { font-size: 9.5px; letter-spacing: 0.5px; }

  .auth__panel { padding: 24px 16px 44px; }

  .auth__form { padding: 22px 18px; border-radius: 18px; }

  .auth__row { grid-template-columns: 1fr; }

  .auth__socials { grid-template-columns: 1fr; }

  .auth__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 380px) {
  .auth__brandTop { flex-direction: column; align-items: flex-start; gap: 12px; }

  .auth__statDot { display: none; }
}
