:root {
  --nori-cyan: #00d4ff;
  --nori-blue: #6a5cff;
  --nori-violet: #9b7dff;
  --nori-ink: #050923;
  --nori-panel: #070d2a;
  --nori-card: #111b45;
  --nori-text: #ffffff;
  --nori-muted: rgba(255, 255, 255, 0.68);
  --nori-font: "Google Sans Flex", "Google Sans", "Product Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.nori-auth {
  min-height: 100vh;
  margin: 0;
  color: var(--nori-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 212, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(155, 125, 255, 0.2), transparent 32%),
    linear-gradient(135deg, #050923 0%, #070b24 48%, #111b45 100%);
  font-family: var(--nori-font);
}

.auth-shell {
  min-height: 100vh;
  height: 100vh;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.76fr);
  gap: 32px;
  align-items: center;
}

.auth-brand {
  min-height: 0;
  padding: 34px;
  border: 1px solid rgba(106, 92, 255, 0.28);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 24%, rgba(0, 212, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(7, 13, 42, 0.86), rgba(5, 9, 35, 0.82));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.brand-logo {
  width: 80px;
  max-width: 26%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.28));
  position: relative;
  z-index: 1;
}

.brand-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.brand-kicker {
  margin: 0 0 14px;
  color: var(--nori-cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.08;
  font-weight: 750;
}

.brand-copy p {
  width: min(540px, 100%);
  margin: 18px 0 0;
  color: var(--nori-muted);
  font-size: 15px;
  line-height: 1.62;
}

.brand-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  gap: 22px;
  align-items: end;
}

.brand-mascot {
  width: 100%;
  max-width: 150px;
  justify-self: end;
  margin: 0 22px -20px 0;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(0, 212, 255, 0.5));
}

.auth-points {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.auth-points i,
.auth-points svg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #071027;
  background: var(--nori-cyan);
  font-size: 14px;
  padding: 4px;
  stroke-width: 4;
}

.auth-card {
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(106, 92, 255, 0.38);
  border-radius: 24px;
  color: #fff;
  background: rgba(7, 13, 42, 0.84);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 27, 69, 0.9);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.22);
}

.auth-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.auth-card h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
}

.auth-card p {
  margin: 12px 0 0;
  color: var(--nori-muted);
  line-height: 1.58;
}

.auth-alert {
  display: none;
}

.auth-social-button {
  width: 100%;
  min-height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(106, 92, 255, 0.16));
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.auth-social-button:hover,
.auth-social-button:focus {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(106, 92, 255, 0.24));
  transform: translateY(-1px);
}

.auth-social-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.auth-divider {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 650;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.form-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.auth-input {
  border: 1px solid rgba(106, 92, 255, 0.28);
  border-radius: 14px;
  color: #111827;
  background: #eaf2ff;
  font: inherit;
  padding: 10px;
}

.auth-input::placeholder {
  color: #64748b;
}

.auth-input:focus {
  color: #111827;
  background: #f8fbff;
  border-color: rgba(0, 212, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.password-field {
  position: relative;
}

.password-field .form-control,
.password-field .auth-input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(106, 92, 255, 0.18));
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-card .password-toggle {
  color: #1f2a44;
  background: rgba(7, 13, 42, 0.08);
}

.password-toggle:hover,
.password-toggle:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--nori-cyan), var(--nori-blue));
  outline: 0;
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.auth-submit {
  padding: 15px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--nori-cyan), var(--nori-blue));
  font-weight: 750;
  box-shadow: 0 16px 34px rgba(0, 212, 255, 0.2);
}

.auth-submit:hover,
.auth-submit:focus {
  color: #fff;
  filter: brightness(1.06);
}

.auth-link {
  color: var(--nori-cyan);
  font-weight: 750;
  text-decoration: none;
}

.auth-link:hover {
  color: #fff;
}

@media (max-width: 992px) {
  body.nori-auth {
    min-height: 100dvh;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    height: auto;
    padding: 24px 0;
  }

  .auth-brand {
    height: auto;
    padding: 28px;
  }

  .brand-copy h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .brand-mascot {
    width: 150px;
    margin: -12px 0 -12px;
  }

  .brand-bottom {
    grid-template-columns: 1fr auto;
  }

  .auth-card {
    max-height: none;
    overflow: visible;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: min(100vw - 24px, 1180px);
  }

  .auth-brand {
    min-height: auto;
  }

  .brand-logo {
    width: 60px;
    max-width: 34%;
  }

  .brand-mascot {
    display: none;
  }

  .brand-bottom {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-card h2 {
    font-size: 26px;
  }
}
