@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&display=swap');

:root {
  --hv2-ink: #ffffff;
  --hv2-muted: #e8ffe8;
  --hv2-lime: #c8ff4a;
  --hv2-lime-deep: #3fd10a;
  --hv2-safe-top: env(safe-area-inset-top, 0px);
  --hv2-safe-bottom: env(safe-area-inset-bottom, 0px);
  --hv2-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.hv2-auth {
  min-height: 100dvh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--hv2-ink);
  background-color: #06351a;
  background-image: var(--hv2-page-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

.hv2-shell {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(6px + var(--hv2-safe-top))
    16px
    calc(18px + var(--hv2-safe-bottom));
  display: flex;
  flex-direction: column;
}

.hv2-hero {
  position: relative;
  z-index: 2;
  min-height: 292px;
  margin: 0 -6px 0;
}

.hv2-brand {
  position: absolute;
  z-index: 4;
  left: 2px;
  top: 18px;
  width: min(58%, 236px);
  pointer-events: none;
}

.hv2-brand img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

.hv2-tagline {
  margin: -4px 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--hv2-lime);
  text-shadow: var(--hv2-text-shadow);
}

.hv2-tagline em {
  font-style: italic;
  font-weight: 900;
}

.hv2-mascot {
  position: absolute;
  right: -28px;
  top: 6px;
  width: min(82%, 340px);
  height: 318px;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.42));
}

body.hv2-auth--register .hv2-hero {
  min-height: 248px;
}

body.hv2-auth--register .hv2-brand {
  top: 18px;
  width: min(52%, 210px);
}

body.hv2-auth--register .hv2-mascot {
  right: -22px;
  top: -8px;
  width: min(78%, 320px);
  height: 276px;
}

.hv2-card {
  position: relative;
  z-index: 5;
  margin-top: -86px;
  padding: 22px 18px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.hv2-auth--register .hv2-card {
  margin-top: -72px;
  padding-top: 18px;
}

.hv2-card__title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-card__sub {
  margin: 6px 0 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hv2-muted);
  line-height: 1.45;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-card__sub strong {
  color: var(--hv2-lime);
  font-weight: 900;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 80, 80, 0.16);
  border: 1px solid rgba(255, 140, 140, 0.35);
  color: #ffe8e8;
}

.hv2-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv2-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 2px 6px;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  background: transparent;
}

.hv2-field:focus-within {
  border-bottom-color: var(--hv2-lime);
  box-shadow: none;
}

.hv2-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--hv2-lime);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.hv2-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hv2-dial {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-flag {
  width: 22px;
  height: 14px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hv2-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-field input::placeholder {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-eye {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.hv2-eye svg {
  width: 20px;
  height: 20px;
}

.hv2-submit {
  margin-top: 8px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  color: #063012;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #c8ff62 0%, #7dff3a 46%, #3fd10a 100%);
  box-shadow:
    0 10px 22px rgba(80, 220, 20, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hv2-submit:active {
  transform: translateY(1px);
}

.hv2-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hv2-submit svg {
  width: 18px;
  height: 18px;
}

.hv2-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-switch a {
  color: var(--hv2-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-footer {
  margin-top: 14px;
  text-align: center;
}

.hv2-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--hv2-lime);
  font-size: 11.5px;
  font-weight: 900;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-footer__brand {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: var(--hv2-text-shadow);
}

.hv2-footer__brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.hv2-footer__brand span {
  color: #c8ff4a;
  font-style: italic;
}

@media (max-width: 380px) {
  .hv2-card__title { font-size: 24px; }
  .hv2-hero { min-height: 250px; }
  .hv2-mascot { height: 270px; }
  .hv2-card { margin-top: -70px; }
  body.hv2-auth--register .hv2-hero { min-height: 220px; }
  body.hv2-auth--register .hv2-mascot { height: 240px; }
}
