/* 手机号登录界面样式 */

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.show {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.login-overlay.show .login-modal {
  transform: translateY(0);
}

.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background-color 0.2s ease;
}

.login-close:hover {
  background: #e0e0e0;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #666;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-group {
  position: relative;
}

.login-input {
  width: 100%;
  height: 48px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #6366f1;
}

.login-input.error {
  border-color: #ef4444;
}

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

.login-send-code {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-send-code:hover:not(:disabled) {
  background: #5856eb;
}

.login-send-code:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.login-error {
  font-size: 14px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 20px;
}

.login-submit {
  width: 100%;
  height: 48px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 8px;
}

.login-submit:hover:not(:disabled) {
  background: #5856eb;
}

.login-submit:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
}

.login-switch {
  color: #6366f1;
  cursor: pointer;
  text-decoration: none;
}

.login-switch:hover {
  text-decoration: underline;
}

.login-help {
  color: #666;
  cursor: pointer;
}

.login-help:hover {
  color: #333;
}

.login-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  animation: login-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes login-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-notice {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}

.login-notice a {
  color: #6366f1;
  text-decoration: none;
}

.login-notice a:hover {
  text-decoration: underline;
}

/* 手机号格式提示 */
.phone-format-tip {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* 验证码倒计时样式 */
.countdown {
  color: #666;
}