/* ============================================================
   登录页面 - SSO Portal 左右布局重构 (Ant Design 风格)
   ============================================================ */

/* ============================================================
   1. 全局布局 - 左右分栏 (55% 品牌 / 45% 登录)
   ============================================================ */

.bg {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

#wrap {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.login-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ============================================================
   2. 左侧品牌区域 (55%)
   ============================================================ */

.login-left {
  flex: 0 0 55% !important;
  position: relative;
  background: linear-gradient(135deg, #001a3f 0%, #001529 50%, #0a2342 100%) !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  width: 55% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 背景网格动画 */
.login-left::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  top: 0;
  left: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 品牌内容容器 */
#login_header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sys_logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.login-title-logo {
  display: inline-block;
  width: 80px;
  height: 80px;
  background-position: center center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.logo_text {
  display: block;
}

.logo_title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  margin-top: 12px;
  letter-spacing: 1px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  word-wrap: break-word;
  max-width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.logo_englishtext {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75) !important;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 300;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  word-wrap: break-word;
  max-width: 100%;
  display: block !important;
  margin-top: 16px;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================================
   3. 右侧登录区域 (45%)
   ============================================================ */

.login-right {
  flex: 0 0 45%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* 登录卡片 */
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 48px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: cardSlideIn 0.4s ease-out;
}

/* ============================================================
   4. 登录表单样式 (Ant Design Design Language)
   ============================================================ */

#login_form {
  width: 100%;
  padding: 0;
  margin: 0;
}

.login_content {
  width: 100%;
}

.clearfix.form_input_holder {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 输入框容器 - Ant Design 风格 */
.login_input_wrapper {
  width: 100%;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0;
  margin: 0 0 16px 0;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login_input_wrapper:hover {
  border-color: #40a9ff;
}

.login_input_wrapper:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
  outline: none;
}

.login_input_wrapper.email_input_holder,
.login_input_wrapper.password_input_holder {
  margin-bottom: 16px;
}

/* 输入框输入字段 */
.login-input {
  flex: 1;
  width: 100%;
  height: 38px;
  padding: 4px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* 占位符标签 */
.tip_label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  cursor: text;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 验证码输入框 */
.login_input_wrapper.verifyCode_input_holder {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.verifyCode_input_holder .login-input {
  flex: 1;
}

#verifyImage {
  width: 93px;
  height: 40px;
  cursor: pointer;
  border-radius: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  border: 1px solid #d9d9d9;
}

/* 隐藏验证码区域 */
.login_input_wrapper.hidden {
  display: none !important;
}

/* ============================================================
   5. 记住我与错误消息
   ============================================================ */

.password_forgot_link {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  flex: 1;
  align-items: center;
}

.forgot-password-link,
.password_forget {
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.forgot-password-link:hover,
.password_forget:hover {
  color: #4096ff;
  text-decoration: underline;
}

.forgot-password-link:active {
  color: #0958d9;
}

.keep_login {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  width: 100%;
  justify-content: space-between;
}

.keep_login_checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.keep_login input[type="checkbox"] {
  cursor: pointer;
}

.keep_login span {
  cursor: pointer;
  user-select: none;
}

.error_msg {
  color: #ff4d4f;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
  min-height: 20px;
  display: block;
}

.error_msg_second {
  color: #ff4d4f;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
  min-height: 20px;
  display: block;
}

/* ============================================================
   6. 登录按钮 - Ant Design Primary Button
   ============================================================ */

#login-submit,
#login-submit_second,
#join-now {
  width: 100%;
  height: 40px;
  background: #1677ff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 40px;
  text-align: center;
  display: inline-block;
  margin: 8px 0 0 0;
  padding: 0;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#login-submit:hover,
#login-submit_second:hover,
#join-now:hover {
  background: #4096ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

#login-submit:active,
#login-submit_second:active,
#join-now:active {
  background: #0958d9;
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(22, 119, 255, 0.2);
}

#login-submit:disabled,
#login-submit_second:disabled,
#join-now:disabled {
  background: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 登录按钮加载状态 */
#login-submit.loading,
#login-submit_second.loading {
  background: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  opacity: 0.8;
}

/* 快速入会按钮 */
.free-login {
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  text-align: right;
  display: block;
  margin-top: 12px;
  padding-right: 0;
}

.free-login:hover {
  color: #4096ff;
  text-decoration: underline;
}

.free-login:active {
  color: #0958d9;
}

/* ============================================================
   7. 忘记密码表单
   ============================================================ */

#forgotPassword-wrapper {
  width: 100%;
  display: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

#forgotPassword-wrapper.show {
  display: block;
}

.forgotPassword {
  width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

.forgotPassword .login_input_wrapper {
  margin-bottom: 16px;
}

.forgotPassword .item-reg-email {
  margin-bottom: 16px;
  width: 100%;
}

.forgotPassword .error_msg {
  color: #ff4d4f;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
  min-height: 20px;
  display: block;
  width: 100%;
}

#forgotPasswordBtn,
#cancel_email,
#send_email {
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 40px;
  text-align: center;
  outline: none;
  background: none;
  border: 1px solid #d9d9d9;
  color: rgba(0, 0, 0, 0.88);
}

#cancel_email {
  background: #ffffff;
  margin-right: 8px;
}

#cancel_email:hover {
  border-color: #40a9ff;
  color: #1677ff;
}

#forgotPasswordBtn,
#send_email {
  background: #1677ff;
  border-color: #1677ff;
  color: #ffffff;
}

#forgotPasswordBtn:hover,
#send_email:hover {
  background: #4096ff;
  border-color: #4096ff;
}

/* ============================================================
   8. 页脚区域
   ============================================================ */

.betwweenWraperAndContent {
  height: auto;
  min-height: 20px;
  width: 100%;
}

#footer {
  width: 100%;
  padding: 20px 40px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.enterprise_introduce_content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.company_info {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.5;
}

.company_info_up {
  padding: 0;
}

.company_info_down {
  padding: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.company_info a {
  color: #1677ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.company_info a:hover {
  color: #4096ff;
  text-decoration: underline;
}

.phoneNumber,
.email,
.companyName,
.copyright,
.establishYear,
.version_year,
.companyDomainName {
  display: inline;
}

.no_meeting_icon {
  display: none;
}

/* ============================================================
   9. 响应式设计
   ============================================================ */

/* 平板 (1024px ~ 1440px) */
@media (max-width: 1440px) {
  .login-left {
    flex: 0 0 50%;
  }
  .login-right {
    flex: 0 0 50%;
  }
}

/* 平板 (768px ~ 1024px) */
@media (max-width: 1024px) {
  .login-left {
    flex: 0 0 45%;
  }
  .login-right {
    flex: 0 0 55%;
    padding: 32px 24px;
  }
  .login-card {
    max-width: 360px;
  }
  .logo_title {
    font-size: 24px;
  }
  .logo_englishtext {
    font-size: 12px;
  }
}

/* 手机 (< 768px) */
@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
  }
  .login-left {
    display: none;
  }
  .login-right {
    flex: 1;
    padding: 24px 16px;
  }
  .login-card {
    width: 100%;
    max-width: none;
  }
  #login_form {
    width: 100%;
  }
  .login_input_wrapper {
    height: 36px;
    margin-bottom: 12px;
  }
  .login-input {
    height: 34px;
    font-size: 14px;
    padding: 4px 10px;
  }
  #login-submit,
  #login-submit_second,
  #join-now {
    height: 36px;
    font-size: 14px;
    line-height: 36px;
    margin-top: 12px;
  }
  #footer {
    padding: 16px 12px;
    font-size: 11px;
  }
  .company_info {
    gap: 12px;
    font-size: 11px;
  }
}

/* 小屏手机 (< 480px) */
@media (max-width: 480px) {
  .login-right {
    padding: 16px 12px;
  }
  .login_input_wrapper {
    height: 32px;
    margin-bottom: 10px;
  }
  .login-input {
    height: 30px;
    font-size: 13px;
    padding: 3px 8px;
  }
  .tip_label {
    font-size: 12px;
  }
  #login-submit,
  #login-submit_second,
  #join-now {
    height: 32px;
    font-size: 13px;
    line-height: 32px;
  }
  #forgotPasswordBtn,
  #cancel_email,
  #send_email {
    height: 32px;
    font-size: 12px;
    line-height: 32px;
    padding: 0 16px;
  }
  .keep_login {
    font-size: 12px;
  }
  .error_msg,
  .error_msg_second {
    font-size: 11px;
  }
  #footer {
    padding: 12px 8px;
    font-size: 10px;
  }
}

/* ============================================================
   最终覆盖规则 - 确保左侧区域显示正确
   ============================================================ */
.login-left {
  background: linear-gradient(135deg, #001a3f 0%, #001529 50%, #0a2342 100%) !important;
}

#login_header {
  background-color: transparent !important;
  background: none !important;
}

.sys_logo,
.logo_text {
  background-color: transparent !important;
  background: none !important;
}
