/* 登录页面样式 - 从 logoview.vue + loginCase.vue 转换 */
.login-container { width: 100vw; min-height: 100vh; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); box-sizing: border-box; position: relative; overflow-x: hidden; }
.bg-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; background: linear-gradient(135deg, #0c0b20, #1a0a2e, #0c0b20); }
#particleContainer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.login-scroll-wrapper { width: 100%; padding: 20px 0; position: relative; z-index: 10; box-sizing: border-box; transform: translateY(30%); }
.login { width: 100%; max-width: 1200px; margin: 0 auto; padding: 30px 15px; font-size: 24px; background: transparent; color: #fff; display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
.login .login-img { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 650px; }
.login .login-img img { width: 100%; height: auto; max-width: 400px; cursor: pointer; }
.login .login-img p { font-size: var(--content-title); font-weight: 600; line-height: 2.5; text-align: center; padding: 0 10px; box-sizing: border-box; }
.login .login-box { height: 400px; transform: scale(0.8); transform-origin: top center; background: transparent; box-sizing: border-box; display: flex; align-items: center; }

/* loginCase 组件样式 */
.login-container_lo { width: 560px !important; height: 400px !important; padding: 2px; background-color: transparent; display: flex; align-items: center; position: relative; box-sizing: border-box; }
.login-card { width: 460px; background-color: rgba(255,255,255,0.3); border-radius: 8px; padding: 36px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; z-index: 1; box-sizing: border-box; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header .login-title { font-size: 24px; color: #919191; margin: 0 0 8px 0; font-weight: 600; }
.login-header .login-desc { font-size: 14px; color: #9b9b9b; margin: 0; }
.tabs { display: flex; border-bottom: 1px solid #dcdfe6; margin-bottom: 30px; }
.tabs .tab-item { padding: 0 5px 12px; font-size: 16px; color: #9b9b9b; cursor: pointer; position: relative; transition: all 0.3s ease; margin: 0 10px; flex: 1; text-align: center; }
.tabs .tab-item.active { color: var(--primary-color); font-weight: 500; }
.tabs .tab-item.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); border-radius: 2px 2px 0 0; }
.tabs .tab-item:hover { color: var(--primary-color); }
.login-form { width: 100%; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group .form-label { display: block; margin-bottom: 8px; font-size: 14px; color: #919191; font-weight: 500; }
.form-group .form-input { width: 100%; height: 46px; padding: 0 15px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 14px; color: #919191; box-sizing: border-box; transition: all 0.3s ease; }
.form-group .form-input::placeholder { color: #c0c4cc; }
.form-group .form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(64,158,255,0.2); }
.form-group .form-input.invalid { border-color: #f56c6c; }
.form-group .form-input.invalid:focus { box-shadow: 0 0 0 2px rgba(245,108,108,0.2); }
.code-group { display: flex; gap: 10px; }
.code-group .code-input { flex: 1; }
.code-group .get-code-btn { width: 110px; height: 46px; background-color: #f5f7fa; color: #9b9b9b; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
.code-group .get-code-btn:hover { background-color: #eef0f3; }
.code-group .get-code-btn:disabled { background-color: #f5f5f5; color: #ccc; cursor: not-allowed; border-color: #e9e9e9; }
.error-message { margin: 5px 0 0 0; font-size: 12px; color: #f56c6c; height: 16px; line-height: 16px; }
.form-extra { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.login-btn { width: 100%; height: 46px; background-color: var(--primary-color); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
.login-btn:hover { opacity: 0.9; }
.login-btn:disabled { background-color: #a0cfff; cursor: not-allowed; }
.loading-spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.agreement { display: flex; align-items: center; justify-content: center; margin: 15px 0; font-size: 12px; color: #9b9b9b; }
.agreement input { width: 12px; height: 12px; margin-right: 5px; accent-color: var(--primary-color); }
.agreement .agreement-link { color: var(--primary-color); text-decoration: none; margin: 0 2px; }
.agreement .agreement-link:hover { text-decoration: underline; }
.login-message-wrap { position: fixed; top: 24px; left: 0; right: 0; z-index: 9999; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; box-sizing: border-box; }
.login-message { min-width: 220px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.22); opacity: 0; transform: translateY(-12px); transition: opacity 0.18s ease, transform 0.18s ease; box-sizing: border-box; }
.login-message.show { opacity: 1; transform: translateY(0); }
.login-message.success { background: #18a058; }
.login-message.error { background: #d03050; }

@media screen and (max-width: 798px) {
  .login-scroll-wrapper { height: calc(100vh - 160px); transform: translateY(0%); max-height: calc(100vh - 160px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 5px; }
  .login { flex-direction: column; margin-top: 20px; gap: 2rem; font-size: 18px; padding: 15px; padding-top: 30px; }
  .login .login-img { max-width: 100%; }
  .login .login-img img { width: 80%; display: none; }
  .login .login-img p { font-size: var(--font-size-base); }
  .login .login-box { transform: translate(0, 10%) scale(0.8); }
  .login-container_lo { width: 100vw !important; height: 400px !important; }
  .login-card { padding: 28px 20px; }
}
@media screen and (max-width: 375px) {
  .login { gap: 1.5rem; margin-top: 10px; padding: 10px 5px; }
  .login-box { transform: scale(0.85); height: auto; }
}
