:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --yellow: #ffdf00;
  --text-muted: #c6c6c6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  background: #111;
  color: #f5f5f5;
  font-size: 13px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.register-app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  background: #000;
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.8);
}

.register-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #303030;
}

.menu-button,
.header-icon {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button {
  width: 28px;
  gap: 4px;
  justify-items: start;
}

.menu-button span {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #dedede;
}

.menu-button span:last-child {
  width: 15px;
}

.brand {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 140px;
  height: 62px;
  transform: translateX(-50%);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.header-icon {
  position: relative;
  width: 24px;
  height: 30px;
  color: #f4f4f4;
}

.header-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account span {
  position: absolute;
  top: 1px;
  right: -4px;
  width: 12px;
  height: 8px;
  border: 1px solid #303030;
  border-radius: 5px;
  background: #7acb52;
}

.register-content {
  padding: 29px 38px 26px;
}

.register-content h1 {
  margin: 0 0 21px;
  color: #d0d0d0;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.bonus-banner {
  position: relative;
  display: flex;
  min-height: 151px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 58, 0.55);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(188, 21, 35, 0.08), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 15px, rgba(255, 235, 118, 0.04) 15px 17px),
    linear-gradient(110deg, #690714, #30040b 50%, #7a0713);
  box-shadow: inset 0 0 26px rgba(255, 190, 47, 0.13);
}

.bonus-banner::before,
.bonus-banner::after {
  position: absolute;
  top: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 61, 0.32), transparent);
  content: "";
}

.bonus-banner::before {
  left: 8px;
  transform: skew(-18deg);
}

.bonus-banner::after {
  right: 8px;
  transform: skew(18deg);
}

.bonus-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffdf24;
  text-align: center;
  text-shadow: 0 2px 4px #210006;
}

.bonus-copy span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bonus-copy strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.bonus-copy small {
  color: #fff;
  font-size: 13px;
}

.bonus-copy small b {
  color: #fff;
  font-size: 20px;
}

.bonus-orb {
  position: absolute;
  width: 75px;
  height: 108px;
  border: 1px solid rgba(255, 226, 85, 0.55);
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(ellipse at 35% 25%, #fff0a7, #e6a725 33%, #a32e12 68%, #41080a);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.orb-one {
  left: -25px;
  transform: rotate(-24deg);
}

.orb-two {
  right: -24px;
  transform: rotate(24deg);
}

.bonus-coin {
  position: absolute;
  top: 12px;
  right: 22%;
  color: #ffe776;
  font-size: 24px;
  text-shadow: 0 2px 5px #000;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px -3px 16px;
}

.benefit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit svg {
  width: 58px;
  height: 58px;
  margin-bottom: 2px;
  fill: none;
  stroke: #ffe100;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 222, 0, 0.18));
}

.benefit strong {
  min-height: 30px;
  color: #ffe100;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
}

.benefit span {
  margin-top: 4px;
  color: #d8d8d8;
  font-size: 11px;
  line-height: 1.25;
}

.register-with {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #d8d8d8;
  font-size: 12px;
}

.telegram-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.telegram-button svg {
  width: 100%;
  height: 100%;
}

.telegram-button svg circle {
  fill: #22aeea;
}

.telegram-button svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 18px 12px;
  color: #898989;
  font-size: 11px;
}

.or-divider span {
  height: 1px;
  flex: 1;
  background: #555;
}

.or-divider b {
  font-weight: 400;
}

.register-form {
  display: grid;
  gap: 17px;
}

.input-row {
  display: flex;
  min-height: 53px;
  align-items: center;
  gap: 20px;
}

.input-row > svg {
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  fill: none;
  stroke: #d2d2d2;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #656565;
}

.input-content strong {
  color: #f0f0f0;
  font-size: 12px;
  font-weight: 700;
}

.input-content input {
  width: 100%;
  height: 22px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 11px;
}

.input-content input::placeholder {
  color: #737373;
  opacity: 1;
}

.input-content:focus-within {
  border-bottom-color: var(--yellow);
}

.password-toggle {
  width: 22px;
  height: 28px;
  margin-left: -12px;
  border: 0;
  background: transparent;
  color: #898989;
  font-size: 15px;
}

.register-form .form-message {
  display: none;
  margin: -8px 0 -7px 58px;
  color: #ffb3a9;
  font-size: 11px;
  line-height: 1.4;
}

.register-form .form-message:not(:empty) {
  display: block;
}

.register-submit {
  width: 100%;
  height: 38px;
  margin: 3px 0 0;
  border: 0;
  border-radius: 24px;
  background: var(--yellow);
  color: #161300;
  font-size: 13px;
  font-weight: 700;
}

.login-link {
  display: block;
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffe000;
  font-size: 12px;
  text-decoration: underline;
}

.notice-backdrop {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.74);
}

.notice-dialog {
  position: relative;
  width: min(100%, 340px);
  padding: 24px 20px 18px;
  border: 1px solid #b89d16;
  border-radius: 8px;
  background: #202020;
  text-align: center;
}

.notice-dialog h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.notice-dialog p {
  margin: 0 0 18px;
  color: #d0d0d0;
  font-size: 12px;
  line-height: 1.5;
}

.notice-close {
  position: absolute;
  top: 6px;
  right: 9px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 23px;
}

.notice-ok {
  width: 100%;
  height: 35px;
  border: 0;
  border-radius: 18px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 360px) {
  .register-content {
    padding-right: 26px;
    padding-left: 26px;
  }

  .benefit svg {
    width: 52px;
    height: 52px;
  }

  .input-row {
    gap: 15px;
  }
}
