/* Auth pages — brand-2 split layout */
.na-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--brand-black, #0f0f0f);
  background: #f7f5fb;
  -webkit-font-smoothing: antialiased;
}

.na-auth-page a {
  color: inherit;
  text-decoration: none;
}

.na-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
}

.na-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--brand-2-grad, linear-gradient(135deg, #964FFF 0%, #B07AFF 48%, #7B3AD6 100%));
  color: #fff;
}

.na-auth-brand::before,
.na-auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  transform: rotate(-32deg);
}

.na-auth-brand::before {
  width: 42%;
  height: 4.5rem;
  left: -6%;
  bottom: 14%;
  opacity: 0.85;
}

.na-auth-brand::after {
  width: 28%;
  height: 3.1rem;
  left: 8%;
  bottom: 7%;
  opacity: 0.55;
}

.na-auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.na-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.na-auth-logo img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
}

.na-auth-brand h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.na-auth-brand p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 26rem;
}

.na-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
}

.na-auth-panel-inner {
  width: 100%;
  max-width: 22.5rem;
}

.na-auth-kicker {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #964FFF;
}

.na-auth-heading {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1a2e;
}

.na-auth-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: #fff1f0;
  color: #b42318;
  font-size: 0.875rem;
  line-height: 1.4;
}

.na-auth-alert a {
  color: #964FFF;
  font-weight: 700;
  text-decoration: underline;
}

.na-auth-ok {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: #ecfdf3;
  color: #027a48;
  font-size: 0.875rem;
  line-height: 1.4;
}

.na-auth-form {
  display: grid;
  gap: 0.85rem;
}

.na-auth-field {
  position: relative;
}

.na-auth-field .material-symbols-outlined {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #964FFF;
  opacity: 0.85;
  pointer-events: none;
}

.na-auth-input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #F3EBFF;
  color: #1f1a2e;
  padding: 0.95rem 1.1rem 0.95rem 2.85rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.na-auth-input::placeholder {
  color: #9a93ad;
}

.na-auth-input:focus {
  background: #ebe6ff;
  box-shadow: 0 0 0 3px rgba(122, 122, 219, 0.22);
}

.na-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: #8b849c;
}

.na-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
}

.na-auth-check input {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  border-radius: 999px;
  border: 2px solid #964FFF;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.na-auth-check input:checked {
  background: #964FFF;
  box-shadow: inset 0 0 0 2px #fff;
}

.na-auth-link {
  color: #8b849c;
  transition: color 0.15s ease;
}

.na-auth-link:hover {
  color: #964FFF;
}

.na-auth-submit {
  appearance: none;
  border: 0;
  margin-top: 0.55rem;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: #964FFF;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
}

.na-auth-submit:hover {
  filter: none;
  background: #7B3AD6;
  box-shadow: none;
  transform: none;
}

.na-auth-submit:active {
  transform: none;
}

.na-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.95rem;
  color: #b0a9c0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.na-auth-divider::before,
.na-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ebe6f5;
}

.na-auth-google-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.na-auth-google-wrap .abcRioButton,
.na-auth-google-wrap .g-signin2 > div {
  margin: 0 auto !important;
}

.na-auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #8b849c;
}

.na-auth-switch a {
  color: #964FFF;
  font-weight: 700;
}

.na-auth-home {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.na-auth-home a {
  color: #9a93ad;
}

.na-auth-hint {
  margin: -0.25rem 0 0;
  padding: 0 0.35rem;
  font-size: 0.8rem;
  color: #b42318;
  text-align: left;
}

.na-auth-hint[hidden] {
  display: none !important;
}

.na-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.na-auth-home a:hover {
  color: #964FFF;
}

@media (max-width: 900px) {
  .na-auth-page {
    background: #fff;
  }

  .na-auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .na-auth-brand {
    order: 1;
    min-height: 0;
    max-height: none;
    justify-content: flex-start;
    padding: 1.35rem 1.25rem 1.6rem;
  }

  .na-auth-brand::before {
    width: 58%;
    height: 3.25rem;
    left: -8%;
    bottom: 12%;
  }

  .na-auth-brand::after {
    width: 36%;
    height: 2.25rem;
    left: 10%;
    bottom: 5%;
  }

  .na-auth-brand-inner {
    max-width: none;
  }

  .na-auth-logo {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .na-auth-logo img {
    width: 2rem;
    height: 2rem;
  }

  .na-auth-brand h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.55rem, 6vw, 1.85rem);
  }

  .na-auth-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
  }

  .na-auth-panel {
    order: 2;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 1.2rem 2.25rem;
    background: #fff;
  }

  .na-auth-panel-inner {
    max-width: 22.5rem;
    margin: 0 auto;
  }

  .na-auth-heading {
    margin-bottom: 1.15rem;
  }
}
