/* Figma 05登录 node 45:516 — 教学教务平台弹窗 */

.login-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.login-modal.is-open {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.login-modal__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.login-modal__panel {
  position: relative;
  width: 100%;
  max-width: 878px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
  animation: loginModalIn 0.28s ease;
}

@keyframes loginModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-modal__pattern {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: url('../img/172af126-15b9-4a66-9c17-8c08093adb06.jpg') no-repeat center bottom / cover;
  opacity: 0.95;
  pointer-events: none;
}

.login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.login-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.login-modal__inner {
  position: relative;
  z-index: 2;
  padding: 44px 48px 48px;
  max-width: 631px;
  margin: 0 auto;
}

.login-modal__title {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  text-align: center;
  line-height: 1.25;
  font-family: 'Noto Sans SC', sans-serif;
}

.login-modal__title-bar {
  width: 81px;
  height: 9px;
  margin: 0 auto 36px;
  background: #0071b6;
  border-radius: 6.5px;
}

.login-modal__field {
  display: flex;
  align-items: center;
  height: 65px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-sizing: border-box;
  padding: 0 16px 0 20px;
  gap: 12px;
}

.login-modal__field img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  -o-object-fit: contain;
  flex-shrink: 0;
}

.login-modal__field-divider {
  width: 1px;
  height: 26px;
  background: #d9d9d9;
  flex-shrink: 0;
}

.login-modal__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  color: #333;
  background: transparent;
}

.login-modal__field input::placeholder {
  color: #cdcdcd;
}

.login-modal__row-captcha {
  display: flex;
  gap: 13px;
  margin-bottom: 28px;
}

.login-modal__field--captcha {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.login-modal__field--captcha img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  -o-object-fit: contain;
}

.login-modal__send-code {
  flex-shrink: 0;
  width: 253px;
  max-width: 42%;
  height: 65px;
  border: none;
  border-radius: 8px;
  background: #0071b6;
  color: #fff;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-modal__send-code:hover {
  opacity: 0.9;
}

.login-modal__submit {
  width: 100%;
  height: 69px;
  border: none;
  border-radius: 8px;
  background: #0071b6;
  color: #fff;
  font-size: 20px;
  font-family: 'Noto Sans SC', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-modal__submit:hover {
  opacity: 0.92;
}

body.login-modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .login-modal__inner {
    padding: 36px 20px 32px;
  }

  .login-modal__title {
    font-size: 26px;
  }

  .login-modal__title-bar {
    margin-bottom: 28px;
  }

  .login-modal__row-captcha {
    flex-direction: column;
  }

  .login-modal__send-code {
    width: 100%;
    max-width: none;
    height: 52px;
  }

  .login-modal__field {
    height: 56px;
  }

  .login-modal__submit {
    height: 56px;
    font-size: 17px;
  }
}
