:root {
  --ohk-ink: #fff;
  --ohk-muted: rgba(255, 255, 255, 0.72);
  --ohk-line: rgba(255, 255, 255, 0.5);
  --ohk-sheet: #a81668;
  --ohk-safe-top: env(safe-area-inset-top, 0px);
  --ohk-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

body.ohk-auth {
  min-height: 100dvh;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ohk-ink);
  background-color: #f4b6d4;
  background-image: url("ohk-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ohk-stage {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e7a0d4 0%, var(--ohk-sheet) 42%, #e23a96 100%);
}

.ohk-hero {
  display: block;
  width: 100%;
  height: 40dvh;
  object-fit: cover;
  object-position: center 28%;
  margin-top: var(--ohk-safe-top);
}

.ohk-sheet {
  position: relative;
  flex: 1;
  margin-top: -18px;
  padding: 6px 22px calc(136px + var(--ohk-safe-bottom));
  overflow: hidden;
  background: linear-gradient(180deg, #a81668 0%, #c21878 42%, #d81b7a 100%);
}

.ohk-bloom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: url("ohk-footer.jpg") center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.ohk-sheet > :not(.ohk-bloom) {
  position: relative;
  z-index: 1;
}

.ohk-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2px 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ohk-title::before,
.ohk-title::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.ohk-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(70, 0, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.ohk-alert p { margin: 0; }
.ohk-alert p + p { margin-top: 4px; }

.ohk-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border-bottom: 1px solid var(--ohk-line);
}

.ohk-field + .ohk-field { margin-top: 2px; }

.ohk-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #fff;
}

.ohk-ico svg { width: 22px; height: 22px; display: block; }

.ohk-dial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 15px;
  font-weight: 800;
}

.ohk-dial svg { width: 12px; height: 12px; }

.ohk-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.ohk-field input::placeholder {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.ohk-field input:read-only { opacity: 0.9; }

/* Hide native black reveal / autofill icons (duplicate of .ohk-eye). */
.ohk-field input::-ms-reveal,
.ohk-field input::-ms-clear {
  display: none;
}

.ohk-field input::-webkit-credentials-auto-fill-button,
.ohk-field input::-webkit-strong-password-auto-fill-button,
.ohk-field input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.ohk-eye {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.ohk-eye svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.ohk-eye .eye-off { display: none; }
.ohk-eye.is-on .eye-on { display: none; }
.ohk-eye.is-on .eye-off { display: block; }

.ohk-go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #ff8fd0 0%, #ff4eb6 46%, #f21f96 100%);
  box-shadow:
    0 8px 16px rgba(120, 10, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ohk-go:active { transform: translateY(1px); }

.ohk-go__arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.ohk-go__arrow svg { width: 16px; height: 16px; }

.ohk-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 8px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.ohk-or::before,
.ohk-or::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.ohk-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.ohk-alt svg { width: 18px; height: 18px; }

.ohk-switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.ohk-switch a {
  color: #ffd0ea;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 520px) {
  body.ohk-auth { padding: 28px 16px; }
  .ohk-stage {
    min-height: calc(100dvh - 56px);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(160, 30, 90, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ohk-go:active { transform: none; }
}
