* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body,
html {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, #4ea4dc, #6c5ce7);
  font-size: 14px;
  color: #333;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#root {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.container {
  background-color: #fff;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.header {
  position: relative;
  text-align: center;
  font-size: 1.8rem;
  line-height: 5rem;
  background: linear-gradient(to right, #4ea4dc, #6c5ce7);
  color: #fff;
  padding: 0 50px;
  font-weight: 600;
}

.back-button {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.back-button i {
  color: white;
  font-size: 1.2rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 30px;
}

.content form {
  padding: 0 1.2rem;
  width: 100%;
  max-width: 400px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.1rem;
}

.content form input {
  padding: 0 20px 0 45px;
  width: 100%;
  height: 50px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  color: #333;
  outline: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.content form input:focus {
  background-color: #fff;
  border-color: #4ea4dc;
  box-shadow: 0 0 0 3px rgba(78, 164, 220, 0.2);
}

.content form input::placeholder {
  color: #aaa;
}

.code-box {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.code-input {
  flex: 1;
  position: relative;
}

.code-input i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.1rem;
}

.code-input input {
  padding-left: 45px !important;
}

.code-btn {
  width: 120px;
}

.code-btn button {
  width: 100%;
  height: 50px;
  background: #6c5ce7;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-btn button:hover {
  background: #5d4fdb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.code-btn button:disabled {
  background: #b2b2b2;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn {
  margin-top: 10px;
}

.submit-btn button {
  padding: 0 20px;
  width: 100%;
  height: 50px;
  background: linear-gradient(to right, #4ea4dc, #6c5ce7);
  border-radius: 8px;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.submit-btn button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.footer {
  text-align: center;
  padding: 20px 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.footer a {
  color: #4ea4dc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.captcha-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.captcha-input {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 15px;
  transition: border-color 0.3s;
}

.captcha-input:focus-within {
  border-color: #3a7bd5;
  box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
}

.captcha-img-container {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  width: 130px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.captcha-img-container:hover {
  border-color: #3a7bd5;
}

.captcha-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.refresh-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 10px;
  text-align: center;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.captcha-img-container:hover .refresh-text {
  opacity: 1;
}

/* 修复后的用户协议复选框 - 简单有效 */
.options {
  margin: 15px 0;
  padding: 0;
  background: none;
  max-width: 100%;
}

.agree {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

.agree label {
  cursor: pointer;
  line-height: 1.4;
}

.agree a {
  color: #4ea4dc;
  text-decoration: none;
  transition: all 0.2s;
}

.agree a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .header {
    font-size: 1.6rem;
    line-height: 4rem;
  }

  .content form {
    padding: 0 20px;
  }

  .code-box {
    flex-direction: column;
  }

  .code-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header {
    font-size: 1.4rem;
    padding: 0 40px;
  }

  .back-button {
    width: 32px;
    height: 32px;
  }

  .content form input {
    height: 46px;
    font-size: 1rem;
  }

  .submit-btn button {
    height: 48px;
    font-size: 1.2rem;
  }

  .footer {
    padding: 15px 0;
  }

  .agree {
    font-size: 0.85rem;
  }

  .agree input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
}
