.birdiamond-auth-body {
  margin: 0;
  background: #f3f4f6;
  color: #000;
}

.auth-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  background: #f3f4f6;
}

.admin-bar .auth-shell {
  min-height: calc(100svh - 32px);
}

.auth-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  color: #000;
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
}

.auth-logo span,
.auth-logo strong {
  display: block;
  color: #000;
  font-size: 30px;
  font-weight: 700;
}

.auth-logo strong {
  font-weight: 400;
}

.auth-card {
  width: min(100%, 568px);
  padding: 64px 80px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.auth-card--login {
  width: min(100%, 568px);
}

.auth-card--complete {
  width: min(100%, 454px);
  padding: 48px 64px;
}

.auth-card__header {
  margin-bottom: 30px;
}

.auth-card__header--center {
  text-align: center;
}

.auth-card__header h1 {
  margin: 0;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-card__header p {
  margin: 14px 0 0;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form--complete {
  gap: 16px;
}

.auth-field {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
}

.auth-field > span {
  color: #000;
  font-size: 12px;
  font-weight: 500;
}

.auth-field input,
.auth-field select,
.auth-phone {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
}

.auth-field input,
.auth-field select {
  padding: 0 16px;
}

.auth-field input::placeholder {
  color: #8895aa;
  opacity: 1;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-phone:focus-within,
.auth-code-grid input:focus {
  border-color: #000;
}

.auth-field--password input {
  padding-right: 58px;
}

.auth-eye {
  position: absolute;
  right: 12px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 0;
  font-weight: 700;
  cursor: pointer;
}

.auth-eye::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 16px;
  height: 9px;
  border: 1px solid #000;
  border-radius: 50%;
}

.auth-eye::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000;
}

.auth-legal {
  margin: 12px 0 14px;
  color: #000;
  font-size: 12px;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-submit:hover {
  background: #000;
  color: #fff;
}

.auth-submit:disabled {
  border-color: #b8c1d0;
  background: #b8c1d0;
}

.auth-submit--link {
  margin-top: 24px;
}

.auth-resend {
  margin-top: 14px;
}

.auth-resend[hidden] {
  display: none;
}

.auth-resend__button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 5px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-resend__button:hover {
  background: #000;
  color: #fff;
}

.auth-switch {
  margin: 24px 0 0;
  color: #000;
  font-size: 15px;
  text-align: center;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-row--between {
  justify-content: space-between;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.35;
}

.auth-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #000;
}

.auth-check--dense {
  font-size: 11px;
}

.auth-muted-link {
  color: #000;
  font-size: 14px;
  text-decoration: none;
}

.auth-message {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 18px 42px 18px 18px;
  border-radius: 8px;
  color: #000;
  font-size: 14px;
  line-height: 1.45;
}

.auth-message p {
  margin: 0;
}

.auth-message--error {
  border: 1px solid #000;
  background: #fff;
}

.auth-message--success {
  background: #eefaf4;
}

.auth-message--success strong {
  font-size: 18px;
  line-height: 1.25;
}

.auth-message--success button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 26px;
  line-height: 1;
}

.auth-ref {
  margin: 0 0 26px;
  color: #000;
  font-size: 15px;
}

.auth-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  font-size: 13px;
}

.auth-code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.auth-code-grid input {
  width: 100%;
  min-height: 70px;
  padding: 0;
  border: 1px solid #d6dde8;
  border-radius: 7px;
  color: #000;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  outline: 0;
}

.auth-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-phone {
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
}

.auth-phone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d6dde8;
  color: #000;
  font-size: 14px;
}

.auth-phone input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
}

@media (max-width: 640px) {
  .auth-shell {
    justify-content: flex-start;
    padding: 34px 16px;
  }

  .auth-card,
  .auth-card--complete {
    padding: 34px 22px;
    border-radius: 14px;
  }

  .auth-card__header h1 {
    font-size: 24px;
  }

  .auth-code-grid {
    gap: 8px;
  }

  .auth-code-grid input {
    min-height: 54px;
  }
}
