/* Login / register — loaded only on those pages */

body.is-auth {
  min-height: 100dvh;
  background:
    radial-gradient(920px 540px at 110% -8%, rgba(15, 110, 92, 0.2), transparent 58%),
    radial-gradient(780px 500px at -15% 108%, rgba(196, 92, 38, 0.16), transparent 52%),
    #efe6d4;
}

body.is-auth main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 48px;
}

body.is-auth .banner {
  width: min(400px, calc(100% - 24px));
}

.gate {
  width: min(400px, 100%);
}

.gate-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ink);
}

.gate-logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 110, 92, 0.3);
}

.gate-logo span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.gate-card {
  background: #fffdf9;
  border: 1px solid rgba(20, 32, 43, 0.08);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 55px rgba(20, 48, 40, 0.14);
  overflow: hidden;
}

.gate-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #0f6e5c 0%, #1aa384 55%, #e8c07a 100%);
}

.gate-head {
  padding: 22px 24px 4px;
}

.gate-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.gate-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.gate-form {
  display: grid;
  gap: 14px;
  padding: 14px 24px 6px;
}

.gate-form .banner {
  width: auto;
  margin: 0;
  font-weight: 700;
  line-height: 1.7;
}

.gate-field label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 700;
  color: #31443f;
}

.gate-field input,
.gate-control input {
  width: 100%;
  height: 50px;
  border: 1px solid #e4d9c8;
  background: #fbf7ef;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}

.gate-field input:focus,
.gate-control input:focus {
  background: #fff;
  border-color: #7db8ab;
  box-shadow: 0 0 0 4px rgba(15, 110, 92, 0.14);
}

.gate-control {
  position: relative;
}

.gate-control input {
  padding-left: 70px;
}

.gate-control .eye {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
}

.gate-control .eye:hover {
  color: var(--teal);
}

.gate-control input::-ms-reveal,
.gate-control input::-ms-clear {
  display: none;
}

.gate-form .btn.wide {
  margin-top: 4px;
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

.gate-alt {
  margin: 0;
  padding: 16px 24px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: linear-gradient(#f7f1e6, #f3eee3);
}

.gate-alt a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 420px) {
  .gate-head,
  .gate-form,
  .gate-alt {
    padding-right: 18px;
    padding-left: 18px;
  }
}
