/* forgot-password.css */

/* 继承 style.css 的基础样式 */
@import url("style.css");

.login-box {
  padding: 40px 50px;
}

.login-box h2 {
  margin-bottom: 35px;
}

/* 
  浮动标签的核心样式 
  继承自 style.css, 但在这里重写以确保一致性
*/
.input-box {
  position: relative;
  margin-bottom: 30px;
}

.input-box input[type="text"],
.input-box input[type="password"] {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px; /* 为底部边框留出空间 */
  border: none;
  border-bottom: 1px solid #fff;
  outline: none;
  background-color: transparent !important; /* 强制覆盖所有背景 */
}

.input-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: 0.5s;
}

/* 当输入框获得焦点或有内容时，标签上移并改变边框颜色 */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -20px;
  left: 0;
  color: #03e9f4;
  font-size: 12px;
}

.input-box input:focus {
  border-bottom-color: #03e9f4;
}

/* 确保所有输入框背景透明，与登录页一致 */
.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #031321 inset !important;
  -webkit-text-fill-color: #fff !important;
  border-bottom-color: #03e9f4 !important; /* 确保自动填充时边框颜色也正确 */
}

/* 移除不再使用的 .input-with-button 样式 */

/* 优化发送验证码按钮 */
#send-code-btn {
  width: 100%;
  margin-bottom: 20px; /* 与HTML中的style一致，但放在CSS中更好 */
}

/* 为禁用状态下的按钮添加更清晰的样式 */
#send-code-btn:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  border: 1px solid #555;
}

#send-code-btn:disabled:hover {
  box-shadow: none;
}

/* 统一主操作按钮的样式 */
.submit-btn {
  margin-top: 10px;
}

/* 返回链接 */
.back-link {
  text-align: center;
  margin-top: 25px;
}

.back-link a {
  color: #03e9f4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.back-link a:hover {
  color: #fff;
  text-decoration: underline;
}
