/* Login page: focused glass panel over the shared Noave topographic backdrop. */
body.auth-body .auth-login-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  box-sizing: border-box;
  padding: 32px 20px;
  overflow: visible;
}

body.auth-body .site-sidebar ~ main.auth-login-stage {
  padding: 0 20px 48px;
}

body.auth-body .auth-login-stage::before,
body.auth-body .auth-login-stage::after,
body.auth-body .auth-login-card::before {
  display: none;
}

body.auth-body .daily-player {
  display: none !important;
}

body.auth-body .auth-login-card {
  position: relative;
  top: -20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 460px);
  max-width: 460px;
  min-height: min(800px, calc(100svh - 64px));
  justify-self: center;
  padding: 34px;
  border: 1px solid rgba(99, 255, 145, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(99, 255, 145, 0.09), transparent 42%),
    rgba(3, 12, 7, 0.88);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 38px rgba(43, 240, 106, 0.08),
    inset 0 1px 0 rgba(202, 255, 213, 0.1);
  backdrop-filter: blur(12px);
}

.auth-login-heading h1 {
  margin: 0;
  color: #f1fff3;
  font-size: 2.25rem;
  line-height: 1.08;
}

.auth-login-heading > p:last-child {
  margin: 10px 0 0;
  color: rgba(232, 255, 237, 0.62);
  font-size: 0.94rem;
  line-height: 1.5;
}

.auth-login-form {
  gap: 15px;
  margin-top: 28px;
}

.auth-login-field {
  position: relative;
  min-width: 0;
}

.auth-login-field > svg {
  position: absolute;
  top: 17px;
  left: 15px;
  z-index: 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: rgba(183, 255, 194, 0.58);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
  transition: stroke 160ms ease;
}

.auth-login-field input {
  width: 100%;
  min-height: 54px;
  padding: 20px 14px 7px 46px;
  border: 1px solid rgba(99, 255, 145, 0.2);
  border-radius: 8px;
  color: #f1fff5;
  background: rgba(1, 8, 4, 0.62);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-login-field input::placeholder {
  color: transparent;
}

.auth-login-field label {
  position: absolute;
  top: 18px;
  left: 46px;
  z-index: 1;
  display: block;
  max-width: calc(100% - 62px);
  overflow: hidden;
  color: rgba(232, 255, 237, 0.55);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: left top;
  transition: top 160ms ease, color 160ms ease, font-size 160ms ease;
}

.auth-login-field input:focus,
.auth-login-field input:not(:placeholder-shown) {
  border-color: rgba(99, 255, 145, 0.5);
  background: rgba(1, 8, 4, 0.78);
}

.auth-login-field input:focus + label,
.auth-login-field input:not(:placeholder-shown) + label {
  top: 8px;
  color: #65ff91;
  font-size: 0.66rem;
}

.auth-login-field:focus-within > svg {
  stroke: #65ff91;
}

.auth-login-form .auth-options {
  margin-top: 0;
  color: rgba(232, 255, 237, 0.7);
}

.auth-login-form .tiny-check {
  display: inline-flex !important;
  grid-template-columns: none;
  gap: 8px !important;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-login-form .tiny-check input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: #32dc67;
}

.auth-login-form .auth-options a {
  color: #9ef5b2;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.auth-login-form .auth-options a:hover {
  color: #65ff91;
  text-decoration: underline;
}

.auth-login-form .auth-message:empty {
  display: none;
}

.auth-login-form .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  border: 1px solid rgba(183, 255, 194, 0.38);
  border-radius: 8px;
  color: #031108;
  background: linear-gradient(110deg, #b7ffc2, #65ff91 48%, #32dc67);
  box-shadow: 0 12px 28px rgba(43, 240, 106, 0.16), inset 0 1px 0 rgba(240, 255, 242, 0.7);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-login-form .auth-submit:hover {
  border-color: rgba(220, 255, 226, 0.75);
  background: linear-gradient(110deg, #c8ffd0, #7bffa0 48%, #49e879);
  box-shadow: 0 16px 34px rgba(43, 240, 106, 0.22);
}

.auth-login-form .auth-submit span {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.auth-login-form .auth-submit:hover span {
  transform: translateX(3px);
}

.auth-login-card .auth-divider {
  margin: 22px 0 18px;
  color: rgba(232, 255, 237, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-login-card .auth-divider::before {
  background: rgba(183, 255, 194, 0.14);
}

.auth-login-card .auth-divider span {
  padding: 0 12px;
  background: #07140b;
}

.auth-login-card .discord-button {
  min-height: 50px;
  border: 1px solid rgba(99, 255, 145, 0.25);
  border-radius: 8px;
  color: #e5ffeb;
  background: rgba(99, 255, 145, 0.055);
  box-shadow: inset 0 1px 0 rgba(202, 255, 213, 0.06);
  font-weight: 700;
}

.auth-login-card .discord-button:hover {
  border-color: rgba(99, 255, 145, 0.52);
  background: rgba(99, 255, 145, 0.1);
  box-shadow: 0 10px 28px rgba(43, 240, 106, 0.1);
}

.auth-login-card .auth-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 24px;
  color: rgba(232, 255, 237, 0.55);
  font-size: 0.82rem;
}

.auth-login-card .auth-bottom a {
  display: inline;
  padding: 0;
  border: 0;
  color: #9ef5b2;
  background: none;
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transform: none;
}

.auth-login-card .auth-bottom a::after {
  display: none;
}

.auth-login-card .auth-bottom a:hover {
  color: #65ff91;
  text-decoration: underline;
  transform: none;
}

@media (max-width: 520px) {
  body.auth-body .auth-login-stage {
    padding: 24px 14px;
  }

  body.auth-body .site-sidebar ~ main.auth-login-stage {
    padding: 0 14px 36px;
  }

  body.auth-body .auth-login-card {
    top: -12px;
    min-height: min(800px, calc(100svh - 48px));
    padding: 26px 22px;
  }

  .auth-login-heading h1 {
    font-size: 1.95rem;
  }

  .auth-login-form .auth-options {
    align-items: flex-start;
  }
}
