* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('../images/9377.jpg') center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 20px;
  overflow: hidden;
  margin: 0;
  position: relative;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#loadingIndicator {
  width: 75px;
  height: 75px;
  background: rgba(128, 128, 128, 0.25);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: absolute;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}


.spinner {
  width: 50px;
  height: 50px;
  position: relative;
}

.spinner span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  animation: opacityWave 1.8s linear infinite;
}

.spinner span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 12px;
  background: #888;
  border-radius: 2px;
}

.spinner span:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -0.00s;
}

.spinner span:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.15s;
}

.spinner span:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.30s;
}

.spinner span:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.45s;
}

.spinner span:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.60s;
}

.spinner span:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.75s;
}

.spinner span:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.90s;
}

.spinner span:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -1.05s;
}

.spinner span:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -1.20s;
}

.spinner span:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -1.35s;
}

.spinner span:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.60s;
}

.spinner span:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: -1.65s;
}

@keyframes opacityWave {
  0% {
    opacity: 0.15;
  }

  15% {
    opacity: 0.4;
  }

  30% {
    opacity: 0.8;
  }

  45% {
    opacity: 1.0;
  }

  60% {
    opacity: 0.8;
  }

  75% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.15;
  }
}

.auth-container {
  width: 100%;
  max-width: 340px;
  min-width: 320px;
  background: #ffffff;
  border-radius: 14px;
  padding: 5px 20px 17px 20px;
  position: relative;
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
}

.auth-container.animate-in {
  opacity: 0;
  transform: translateY(100vh);
  animation: flyInSmooth 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes flyInSmooth {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#loginErrorMessage:empty,
#registerErrorMessage:empty,
#phoneLoginErrorMessage:empty,
#phoneRegisterErrorMessage:empty,
#forgotErrorMessage:empty,
#forgotStep2ErrorMessage:empty {
  display: none;
}

.auth-title,
.auth-logo {
  text-align: center;
  display: block;
  margin: 0 auto 0px;
  max-width: 140px;
  height: auto;
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0 -20px 20px;
}

.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-icon,
.toggle-password {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.input-icon {
  left: 12px;
  pointer-events: none;
}

.icon-img {
  width: 14px;
  height: 14px;
  display: block;
}

.toggle-password {
  right: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.auth-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  height: 38px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
}

.auth-input:focus {
  border-color: #ccc;
}

.auth-input[readonly] {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-caps-lock-indicator,
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
}

.actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 13px;
}

.aux-text {
  color: #333333;
  font-size: 12px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.remember-container {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.remember-container input[type="checkbox"] {
  margin-right: 2px;
  margin-top: 1px;
  width: 14px;
  height: 14px;
  accent-color: #777;
  flex-shrink: 0;
}

.forgot-password,
.footer-link {
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.forgot-password:hover,
.footer-link:hover {
  text-decoration: underline;
}

.auth-button {
  width: 100%;
  height: 38px;
  background: #2d2d2d;
  color: #e6c229;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.auth-button:hover {
  background: #252525;
}

.footer-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
}

.footer-link {
  color: #333333;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.error-message {
  color: red;
  margin-top: 0px;
  font-size: 12px;
  text-align: center;
}

#landscapeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  color: white;
  font-family: 'Microsoft YaHei', sans-serif;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

@media screen and (orientation: landscape) {
  #landscapeOverlay {
    display: flex !important;
  }
}

#landscapeOverlay .icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: pulseRotate 2s infinite ease-in-out;
}

@keyframes pulseRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(90deg) scale(1.1);
  }

  100% {
    transform: rotate(90deg) scale(1);
  }
}

#landscapeOverlay p {
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  max-width: 80%;
}

#agreementContent,
#phoneAgreementContent {
  display: none;
  padding: 15px 0;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
}

#agreementContent h3,
#phoneAgreementContent h3 {
  margin: 12px 0 8px;
  color: #333;
}

#agreementContent p,
#phoneAgreementContent p {
  margin: 8px 0;
}

#pageOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

.verify-code-btn {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  padding: 0 15px;
  background: #2d2d2d;
  color: #e6c229;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  white-space: nowrap;
  line-height: 1;
  min-width: 80px;
}


.verify-code-btn:hover {
  background: #252525;
}

.verify-code-btn:disabled {
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

#phoneVerifyCode,
#phoneRegisterVerifyCode,
#forgotVerifyCode {
  padding-right: 90px;
}

#forgotPasswordForm .footer-actions,
#forgotPasswordStep2Form .footer-actions {
  justify-content: center;
}

#forgotPasswordStep3Form .success-icon {
  font-size: 24px;
  color: #4CAF50;
  margin-bottom: 15px;
}

#forgotPasswordStep3Form .success-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

#forgotPasswordStep3Form .success-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}
