.main-container {
  margin: 0 auto;
  max-width: 120rem;
  overflow: hidden;
  position: relative;
}

/* 横幅样式 */
.image-banner .bg {
  width: 100%;
  display: block;
}

.image-banner .hidden-sm {
  display: none;
}

/* 登录区域 */
.login-section {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 5rem 0.9375rem;
  background-color: #fcfdfc;
}

.login-container {
  max-width: 40rem;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.05);
  padding: 3.125rem;
}

/* 第一步：身份选择 */
.role-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2.5rem;
}

.role-buttons {
  display: flex;
  gap: 1.875rem;
}

.role-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem;
  border: 2px solid #e5e5e5;
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-btn:hover {
  border-color: var(--main-color);
  box-shadow: 0 0.625rem 1.875rem rgba(199, 0, 11, 0.1);
  transform: translateY(-0.25rem);
}

.role-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-color), #e8353d);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.role-icon svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.role-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.625rem;
}

.role-desc {
  font-size: 0.875rem;
  color: #999;
  text-align: center;
  line-height: 1.5;
}

/* 第二步：登录表单 */
.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: #666;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.back-btn:hover {
  color: var(--main-color);
}

.back-btn .icon-left-back {
  font-size: 1rem;
}

.form-title {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-right: 4rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.login-form .form-group label .required {
  color: #c7000b;
  margin-right: 0.25rem;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.375rem;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

.tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  z-index: 10;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

.tooltip-icon:hover .tooltip-text {
  display: block;
}

.login-form .form-group input {
  width: 100%;
  height: 3rem;
  padding: 0 0.9375rem;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f9f9f9;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.login-form .form-group input:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(199, 0, 11, 0.1);
}

/* 验证码输入组 */
.verify-group .verify-input-wrapper {
  display: flex;
  gap: 0.75rem;
}

.send-btn {
  flex-shrink: 0;
  width: 8rem;
  height: 3rem;
  background: #fff;
  border: 1px solid var(--main-color);
  border-radius: 0.5rem;
  color: var(--main-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.send-btn:disabled {
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* 提交按钮 */
.login-form .submit-btn {
  width: 100%;
  height: 3rem;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.625rem;
}

/* PC 端样式 */
@media screen and (min-width: 1025px) {
  .image-banner .hidden-sm {
    display: none;
  }

  .image-banner .hidden-lg {
    display: block;
  }

  .image-banner .content-box .vertical-middle-sm {
    margin: 0 auto;
    max-width: 85.375rem;
    width: 80%;
  }
}

/* 平板和手机端样式 */
@media screen and (max-width: 1024px) {
  .image-banner .hidden-lg {
    display: none;
  }

  .image-banner .hidden-sm {
    display: block;
    width: 100%;
  }

  .image-banner .content-box .vertical-middle-sm {
    width: 100%;
    height: 100%;
  }

  .login-section {
    padding: 3rem 0.9375rem;
  }

  .login-container {
    padding: 2rem 1.5rem;
  }

  .verify-group .verify-input-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .verify-group .verify-input-wrapper input {
    height: 3rem;
  }

  .send-btn {
    width: 100%;
  }
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
  .role-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .role-btn {
    padding: 1.5rem 1rem;
  }

  .role-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
  }

  .role-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .role-name {
    font-size: 1.125rem;
  }

  .login-container {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
  }

  .role-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .form-title {
    font-size: 1.25rem;
    margin-right: 3rem;
  }

  .tooltip-text {
    white-space: normal;
    width: 12rem;
    left: -0.5rem;
    transform: none;
  }

  .tooltip-text::after {
    left: 0.5rem;
    transform: none;
  }
}
