.otp-shell {
  position: relative;
}

.otp-heading {
  margin-bottom: 20px;
}

.otp-shell .auth-title {
  margin-bottom: 12px;
}

.otp-description {
  margin: 0 0 18px;
  max-width: 380px;
}

.otp-target-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e7e7e7;
}

.otp-target-label {
  flex: 0 0 auto;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.otp-target {
  min-width: 0;
  color: var(--auth-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-bottom: 14px;
  cursor: text;
}

.code-box {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  outline: none;
  background: #f7f7f7;
  color: var(--auth-text);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  caret-color: transparent;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.code-box.active {
  border: 2px solid var(--auth-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.tip {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--auth-muted);
  font-size: var(--auth-small-size);
  font-weight: 500;
  line-height: 1.45;
}

.tip::before {
  content: "i";
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  color: #777777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.otp-feedback {
  min-height: 22px;
  margin-bottom: 16px;
}

.otp-feedback .status,
.otp-feedback .error {
  margin: 0;
}

.resend {
  margin: 0 0 10px;
  background: #ffffff;
}

.next {
  margin-bottom: 10px;
}

.back {
  margin-top: 2px;
}

.real-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0.01;
}

#recaptcha-container {
  min-height: 0;
}

@media (max-width: 768px) {
  .otp-heading {
    margin-bottom: 18px;
  }

  .otp-target-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .otp-target {
    text-align: left;
  }

  .code-row {
    gap: 7px;
  }

  .code-box {
    height: 56px;
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .code-row {
    gap: 5px;
  }

  .code-box {
    height: 52px;
    font-size: 20px;
    border-radius: 10px;
  }
}
