/* Login screen + registration dialog — original wooden sign (12.59.25.jpeg) and dark OTP dialog (12.58.42.jpeg). */
.og-login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 4px; overflow-x: hidden;
}
.og-login__logo { width: min(52vw, 200px); height: auto; aspect-ratio: 200 / 198; }

/* The sign is laid out in % of its own box; text scales with the sign through container units. */
.og-sign {
  position: relative; container-type: inline-size;
  width: min(96vw, 480px); aspect-ratio: 900 / 745; margin-top: 6px;
  background: url(../img/auth/sign.webp) 0 0 / 100% 100% no-repeat;
}
.og-sign__title, .og-sign__login, .og-login__signup button {
  color: var(--og-yellow); font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
  text-shadow: -.06em -.06em 0 #2b130b, .06em -.06em 0 #2b130b, -.06em .06em 0 #2b130b, .06em .06em 0 #2b130b,
               0 .09em 0 #2b130b, .09em 0 0 #2b130b, -.09em 0 0 #2b130b, 0 -.09em 0 #2b130b;
}
.og-sign__title { position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%); font-size: 6.4cqw; white-space: nowrap; }

/* Pink wooden tags carrying the labels ("Login ID", "Password", "Forgot password", "Remember me"). */
.og-tag {
  display: inline-block; padding: .18em .55em .24em;
  background: url(../img/auth/label.webp) 0 0 / 100% 100% no-repeat;
  color: #fff; font-weight: 700; font-size: 4.2cqw; line-height: 1.15; white-space: nowrap;
  text-shadow: 0 0 2px #3b1b12, 1px 1px 0 #3b1b12, -1px -1px 0 #3b1b12, 1px -1px 0 #3b1b12, -1px 1px 0 #3b1b12;
  border: 0;
}
.og-sign .og-tag { position: absolute; }
.og-sign__label-user { left: 10.5%; top: 18%; }
.og-sign__label-pass { left: 10.5%; top: 37.5%; }
.og-sign__forgot { right: 13%; top: 56%; cursor: pointer; font-family: inherit; }

.og-sign__input {
  position: absolute; left: 10.5%; width: 76.5%; height: 10.2%;
  padding: 0 3.2cqw; border: 0; outline: 0;
  background: url(../img/auth/input.webp) 0 0 / 100% 100% no-repeat;
  color: #fff; font: 600 max(16px, 3.8cqw) / 1 var(--og-font);
}
.og-sign__input:focus { filter: brightness(1.25); }
.og-sign__input-user { top: 25.3%; }
.og-sign__pass { position: absolute; left: 10.5%; top: 44.6%; width: 76.5%; height: 10.2%; }
.og-sign__pass .og-sign__input { left: 0; top: 0; width: 100%; height: 100%; padding-right: 10cqw; }
.og-sign__eye {
  position: absolute; right: 2.2cqw; top: 50%; transform: translateY(-50%);
  width: 7cqw; height: 7cqw; padding: 0; border: 0; background: none; color: #c9c0bd;
}
.og-sign__eye svg { width: 100%; height: 100%; fill: currentColor; }

.og-sign__remember { position: absolute; left: 10.5%; top: 63.5%; display: flex; align-items: center; gap: 1.6cqw; cursor: pointer; }
.og-sign__remember .og-tag { position: static; }
.og-sign__remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.og-check { width: 4.6cqw; height: 4.6cqw; background: url(../img/auth/check-off.webp) 0 0 / 100% 100% no-repeat; }
.og-sign__remember input:checked + .og-check { background-image: url(../img/auth/check-on.webp); }
.og-sign__remember input:focus-visible + .og-check { outline: 2px solid var(--og-yellow); }

.og-sign__login {
  position: absolute; left: 50%; top: 82%; transform: translateX(-50%);
  padding: 0 .3em; border: 0; background: none; font-size: 7cqw; font-family: inherit;
}
.og-sign__login:disabled { opacity: .55; }

.og-login__signup { margin: 2px 0 0; font-size: 18px; color: #fff; text-align: center; }
.og-login__signup button { border: 0; background: none; padding: 0 0 0 4px; font-size: 21px; font-family: inherit; }
.og-login__switch { margin-top: 22px; color: #fff; font-size: 18px; }
.og-login__footer { margin-top: auto; padding-top: 24px; font-size: 11px; color: #858585; }
/* Wider screens: the sign block sits in the middle of the window (phones keep the original top layout). */
@media (min-width: 700px) and (min-height: 600px) {
  .og-login__logo { margin-top: auto; }
  .og-login__switch { margin-bottom: auto; }
  .og-login__footer { margin-top: 0; }
}

/* ---------- Registration / forgot password dialog ---------- */
.og-auth {
  width: calc(100% - 32px); max-width: 420px; padding: 0;
  border: 1px solid #5f5f5f; border-radius: 4px;
  background: #1e1e1e; color: #fff; font-family: var(--og-font);
}
.og-auth::backdrop { background: rgba(0, 0, 0, .75); }
.og-auth__form { padding: 22px 22px 14px; margin: 0; }
.og-auth__title { margin: 0 0 14px; font-size: 24px; font-weight: 500; }
.og-auth__text { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: #ececec; }
.og-auth__hint { margin: 6px 0 12px; font-size: 14px; color: #8f8f8f; }
.og-auth__link { border: 0; background: none; padding: 0; margin: 4px 0 12px; color: var(--og-yellow); font-size: 14px; text-decoration: underline; }
.og-code { display: flex; gap: 8px; margin-bottom: 6px; }
.og-code input {
  flex: 1 1 0; min-width: 0; height: 52px; padding: 0;
  border: 2px solid #1a1a1a; border-radius: 2px; background: #5a5a5a;
  color: #fff; font: 600 24px var(--og-font); text-align: center; outline: 0;
}
.og-code input:focus { border-color: var(--og-yellow); }
.og-creds { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 8px; font-size: 18px; }
.og-creds dt { color: #aaa; }
.og-creds dd { margin: 0; font-weight: 700; color: var(--og-yellow); user-select: all; }
.og-auth__error { margin: 4px 0 8px; padding: 10px 12px; border-radius: 4px; background: #5c1f1f; color: #ffd7d7; font-size: 14px; line-height: 1.45; }
.og-auth__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.og-auth .og-btn:disabled { opacity: .5; cursor: default; }

@media (min-width: 900px) {
  .og-login__logo { width: 200px; }
}
