/* 基础样式 */
.auth-modal {
  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: all 0.3s ease;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 380px;
  max-width: 90%;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* 标签页样式 */
.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #ff6b6b;
  font-weight: 600;
}

.tab-btn.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff6b6b;
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 二维码登录样式 */
.qrcode-container {
  text-align: center;
  margin-bottom: 25px;
}

.qrcode-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.qrcode-img {
  width: 100%;
  height: 100%;
}

.qrcode-status {
  position: absolute;
  top: 86px;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(255, 255, 255, 0.9);*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff6b6b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
  
  display: none;
}

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

.status-text {
  font-size: 14px;
  color: #666;
}

.qrcode-hint {
  font-size: 13px;
  color: #999;
  margin-top: 5px;
}

/* 其他登录方式 */
.alternative-options {
  margin-top: 25px;
}

.divider {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 13px;
  margin: 15px 0;
}

.divider:before,
.divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.divider span {
  padding: 0 10px;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-btn .icon {
  margin-right: 8px;
  font-size: 16px;
}

.auth-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* 注册表单样式 */
.register-form {
  margin-top: 15px;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.3s;
}

.form-input:focus {
  border-color: #ff6b6b;
  outline: none;
}

.sms-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 7px 10px;
  background: #f5f5f5;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.sms-btn:hover {
  background: #eee;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #ff5252;
}

.agreement {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 15px;
}

.agreement a {
  color: #ff6b6b;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
  }
  
  .qrcode-wrapper {
    width: 180px;
    height: 180px;
  }
}