﻿/* ===== home_login.css : home 登录弹窗（块1/2/4 全局层之上的浮层） ===== */
.home-login-modal{
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(10, 35, 80, 0.28);
  color-scheme: light;
  overflow: hidden;
}
.home-login-dialog{
  --bs-modal-width: min(92vw, 440px);
}
.home-login-modal .modal-body{
  padding: 30px 34px 28px !important;
}
.home-login-modal .modal-body,
.home-auth-card{
  color: #1f2328;
}
.home-login-modal .brand-lockup,
.home-auth-card .brand-lockup{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.home-login-modal .brand-mark-large,
.home-auth-card .brand-mark-large{
  width: 40px;
  height: 40px;
}
.home-login-modal .brand-wordmark,
.home-auth-card .brand-wordmark{
  font-size: 20px;
  font-weight: 800;
  color: #063fb4;
  letter-spacing: 0.02em;
}
.home-login-modal .field-label,
.home-auth-card .field-label,
.home-auth-alt{
  font-size: 13px;
  font-weight: 700;
  color: #5b6b86;
}
.home-login-modal .field-label,
.home-auth-card .field-label{
  margin-bottom: 4px;
}
.home-login-modal .form-control,
.home-auth-card .form-control{
  border: 1px solid #d5deeb !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  color: #172033 !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  caret-color: #1769e8;
}
.home-login-modal .form-control:hover,
.home-auth-card .form-control:hover{
  border-color: #aebed3 !important;
}
.home-login-modal .form-control:focus,
.home-auth-card .form-control:focus{
  border-color: #2f8cff !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.14) !important;
  color: #172033 !important;
}
.home-login-modal .form-control:-webkit-autofill,
.home-login-modal .form-control:-webkit-autofill:hover,
.home-login-modal .form-control:-webkit-autofill:focus,
.home-auth-card .form-control:-webkit-autofill,
.home-auth-card .form-control:-webkit-autofill:hover,
.home-auth-card .form-control:-webkit-autofill:focus{
  -webkit-text-fill-color: #172033 !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  caret-color: #1769e8;
}
.home-login-modal .btn-warning,
.home-auth-card .btn-warning{
  border-radius: 12px;
  background: #ffb020;
  border-color: #ffb020;
  font-weight: 700;
}
.home-login-modal .btn-warning:hover,
.home-auth-card .btn-warning:hover{
  background: #ffa000;
  border-color: #ffa000;
}
.home-login-modal [data-login-mode-switch],
.home-auth-card [data-login-mode-switch]{
  border-radius: 0 !important;
  border-color: #cbd7ea;
  background: #ffffff;
  color: #50627d;
  font-weight: 700;
}
.home-login-modal [data-login-mode-switch]:first-child,
.home-auth-card [data-login-mode-switch]:first-child{
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}
.home-login-modal [data-login-mode-switch]:last-child,
.home-auth-card [data-login-mode-switch]:last-child{
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}
.home-login-modal [data-login-mode-switch].active,
.home-auth-card [data-login-mode-switch].active{
  border-color: #1769e8;
  background: #1769e8;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(23, 105, 232, 0.2);
}
.home-login-modal [data-login-mode-switch]:not(.active):hover,
.home-auth-card [data-login-mode-switch]:not(.active):hover{
  border-color: #8eb8f5;
  background: #f4f8ff;
  color: #1456bd;
}
.home-login-modal .prompt-box,
.home-auth-card .prompt-box{
  border-radius: 12px;
  background: #f3f6fb;
  border: 1px solid #e4ebf5;
  color: #5b6b86;
}
.home-auth-page{
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.home-auth-card{
  width: min(100%, 380px);
  padding: 32px;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(10, 35, 80, 0.16);
}
.home-auth-alt{
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-auth-alt a{
  color: #0b63ce;
  text-decoration: none;
}
.home-auth-alt a:hover{
  text-decoration: underline;
}
@media (max-width: 575.98px){
  .home-login-dialog{
    --bs-modal-width: calc(100vw - 28px);
  }
  .home-login-modal .modal-body{
    padding: 24px !important;
  }
  .home-auth-page{
    min-height: auto;
    padding: 24px 0;
  }
  .home-auth-card{
    padding: 24px;
  }
}
