/* 公共样式文件 - 所有页面共享 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 覆盖MUI的全局样式，去掉input/select/textarea的margin-bottom */
input[type=color], input[type=date], input[type=datetime-local], input[type=datetime],
input[type=email], input[type=month], input[type=number], input[type=password],
input[type=search], input[type=tel], input[type=text], input[type=time],
input[type=url], input[type=week], select, textarea {
  margin-bottom: 0 !important;
}

body {
  background-color: #f5f5f5;
  overflow-x: hidden;
}

.mui-content {
  background-color: #f5f5f5;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部标题栏 */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #67c23a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.back-btn {
  position: absolute;
  left: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  border: none;
  background: none;
  padding: 0;
  font-weight: bold;
}

.back-btn:active {
  opacity: 0.6;
}

.header-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

/* 内容区域需要添加顶部间距，避免被标题栏遮挡 */
.content-wrapper {
  margin-top: 50px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 轻量提示浮层 */
.toast {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  max-width: 80%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 按钮样式 */
.submit-info-btn {
  width: calc(100% - 40px);
  height: 50px;
  margin: 20px;
  background-color: #67c23a;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.submit-info-btn:active {
  opacity: 0.8;
}

.get-code-btn {
  position: absolute;
  right: 0;
  height: 36px;
  padding: 0 15px;
  background-color: #67c23a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.get-code-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 加载中状态 */
.loading-container {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading-container.active {
  display: block;
}

.loading-text {
  margin-top: 10px;
  color: #999;
  font-size: 14px;
}
