.auth-box {
  width: 320px;
}

.auth-box .auth-box-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-box .form-item {
  /* margin-bottom: 16px; */
  display: block;
  width: 100%;
}
.auth-box .form-item.error input {
  border-color: #ff4d4f;
}

.auth-box .form-item.error input:hover {
  border-color: #ff4d4f;
}

.auth-box .form-item.error input:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

.auth-box .error-msg {
  color: #f5222d;
  font-size: 14px;
  margin-top: 2px;
  margin-bottom: 4px;
  display: block;
  height: 18px;
  visibility: hidden;
}
.auth-box .form-item.error .error-msg {
  visibility: visible;
}

.auth-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.auth-box label .required-dot {
  color: #f5222d;
  margin-right: 4px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box select {
  width: 100%;
  padding: 6px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
  height: 32px;
  line-height: 1.5;
}

/* Hover state for inputs and select */
.auth-box input[type="text"]:hover,
.auth-box input[type="email"]:hover,
.auth-box select:hover {
  border-color: #1d77fe;
}

/* Focus state for inputs and select */
.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box select:focus {
  border-color: #1d77fe;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* Specific style for select to mimic antd */
.auth-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20d%3D%22M2%2C4%20L6%2C8%20L10%2C4%22%20stroke%3D%22%23444%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px;
}

/* Style for the submit button within auth-box */
.auth-box .button.primary {
  width: 100%;
  height: 32px;
  padding: 4px 15px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 4px;
  background-color: #1d77fe;
  border: 1px solid #1d77fe;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 12px;
}

/* Hover state for the submit button */
.auth-box .button.primary:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}

/* Focus state for the submit button */
.auth-box .button.primary:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.loadingWrap {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.customLoading {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* 浅色背景环 */
  border-top: 5px solid #1d77fe; /* 深色旋转部分 */
  border-radius: 50%;
  animation: spin 1s linear infinite; /* 应用旋转动画 */
}

/* 定义旋转动画 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.auth-code-suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.get-code-btn {
  padding: 0px 2px 0 10px;
  height: 24px;
  font-size: 14px;
  color: #1d77fe;
  background: transparent;
  cursor: pointer;
}

.auth-code-wrapper {
  position: relative;
  flex-grow: 1;
}

.auth-code-input {
  padding-right: 120px;
}

.divider {
  margin: 10px 0;
  width: 100%;
  height: 1px;
  background: #e7e7e7;
}

.codeErrorMsg {
  display: none;
  font-size: 14px;
  color: #ff4d4f;
}

.qrImg {
  display: none;
  margin: 10px auto 0px;
  width: 120px;
  height: 120px;
}

.errorBox {
  position: absolute;
  left: 50%;
  top: 50px;
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  padding: 10px 16px;
  width: max-content;
  max-width: 90%;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.3s;
  transform: translate(-50%, -10px);
  z-index: 1000;
  color: #ff4d4f;
  font-size: 14px;
  pointer-events: none;
}

.errorBox.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.errorBox i {
  margin-right: 8px;
}
