*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.auth-page {
  min-height: 100vh;
  background: #fff;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 28px;
}

.auth-main {
  width: 100%;
  max-width: 560px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-main-otp {
  padding-top: 8vh;
  justify-content: flex-start;
}

.auth-brand {
  margin-bottom: 28px;
  text-align: center;
}

.auth-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

.auth-avatar {
  width: 78px;
  height: 78px;
  margin: 4px auto 28px;
}

.auth-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-field {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0 0 14px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8b8b8 0%, #d8d8d8 28%, #f4f4f4 70%, #ffffff 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 1px 2px rgba(0, 0, 0, 0.06);
  color: #4a4a4a;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.auth-field::placeholder {
  color: #6f6f6f;
  opacity: 1;
}

.auth-field:focus {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 0 0 2px rgba(45, 90, 50, 0.22);
}

.auth-field-center {
  text-align: center;
  margin-bottom: 22px;
}

.auth-forget {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 26px;
  text-decoration: none;
}

.auth-forget:hover {
  color: #222;
}

.auth-back {
  display: block;
  margin-top: 18px;
  color: #6b6b6b;
  font-size: 13px;
  text-decoration: none;
}

.auth-back:hover {
  color: #2d5a32;
  text-decoration: underline;
}

.auth-circle-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2d5a32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 50, 24, 0.28);
}

.auth-circle-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-circle-btn:hover,
.auth-submit-bar:hover .auth-circle-btn {
  background: #244a28;
}

.auth-circle-btn:focus,
.auth-submit-bar:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 90, 50, 0.28);
}

.auth-submit-bar {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #b8b8b8 0%, #d8d8d8 28%, #f4f4f4 70%, #ffffff 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit-bar .auth-circle-btn {
  width: 46px;
  height: 46px;
  pointer-events: none;
  box-shadow: none;
}

.auth-alert {
  width: 100%;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: #b42318;
  font-size: 13px;
  text-align: center;
}

.auth-alert-info {
  background: #eef4ee;
  color: #2d5a32;
}

.auth-footer {
  margin: 32px 0 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

.auth-otp-meta {
  margin-top: 18px;
  color: #6b6b6b;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

.auth-resend {
  display: block;
  margin: 6px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2d5a32;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.auth-resend:disabled {
  color: #9a9a9a;
  cursor: default;
  text-decoration: none;
}

#resend_message {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 28px 16px 20px;
  }

  .auth-brand img {
    max-width: 100%;
    max-height: 120px;
  }

  .auth-footer {
    font-size: 14px;
  }
}
