html.auth-pending body {
  visibility: hidden;
}

.optiwake-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(0, 166, 221, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(0, 102, 179, 0.2),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      #06182b,
      #0b3552 55%,
      #075b78
    );
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  box-sizing: border-box;
}

.optiwake-auth-gate[hidden] {
  display: none !important;
}

.optiwake-auth-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid
    rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background:
    rgba(255, 255, 255, 0.97);
  box-shadow:
    0 24px 80px
    rgba(0, 0, 0, 0.34);
}

.optiwake-auth-logo {
  display: block;
  width: min(240px, 78%);
  max-height: 72px;
  margin: 0 auto 24px;
}

.optiwake-auth-title {
  margin: 0;
  color: #0b1d33;
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

.optiwake-auth-subtitle {
  margin: 8px 0 24px;
  color: #687b8d;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.optiwake-auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.optiwake-auth-field[hidden] {
  display: none !important;
}

.optiwake-auth-label {
  color: #30465d;
  font-size: 12px;
  font-weight: 900;
}

.optiwake-auth-input,
.optiwake-auth-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #bdcad5;
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: #0b1d33;
  font-size: 15px;
  box-sizing: border-box;
}

.optiwake-auth-input:focus,
.optiwake-auth-select:focus {
  border-color: #0077b6;
  box-shadow:
    0 0 0 3px
    rgba(0, 119, 182, 0.14);
}

.optiwake-auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #0066b3,
      #00a6dd
    );
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.optiwake-auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.optiwake-auth-message {
  min-height: 18px;
  margin-top: 14px;
  color: #687b8d;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.optiwake-auth-message.error {
  color: #ad3028;
}

.optiwake-auth-message.success {
  color: #147044;
}

.optiwake-auth-footer {
  margin-top: 22px;
  color: #8a99a7;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 520px) {
  .optiwake-auth-gate {
    align-items: stretch;
    padding: 0;
  }

  .optiwake-auth-card {
    width: 100%;
    min-height: 100dvh;
    padding:
      max(34px, env(safe-area-inset-top))
      24px
      max(28px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .optiwake-auth-logo {
    margin-top: 24px;
  }

  .optiwake-auth-title {
    font-size: 23px;
  }

  .optiwake-auth-input,
  .optiwake-auth-select,
  .optiwake-auth-submit {
    min-height: 52px;
  }
}
