/* Scoped entry styles: business pages and account permissions stay unchanged. */
.login-screen {
  width: min(1120px, calc(100% - 64px)); min-height: 680px;
  margin: max(32px, calc((100vh - 720px) / 2)) auto;
  grid-template-columns: 1fr 1fr; border: 1px solid #e0e6ef;
  border-radius: 24px; background: #fff; box-shadow: 0 24px 80px #24385a0d;
}
.login-screen .login-hero {
  min-height: 680px; padding: 44px 38px 32px; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
  background: radial-gradient(ellipse at 80% 40%, #dee9ff 0, transparent 65%), #f2f5fa;
}
.auth-hero-copy { position: relative; z-index: 1; }
.login-hero .auth-company { font-size: 11px; font-weight: 750; letter-spacing: .09em; color: #526685; margin: 0 0 18px; }
.login-hero h1 { font-size: clamp(25px, 2.2vw, 32px); line-height: 1.35; max-width: 460px; color: #172c4c; letter-spacing: -.03em; margin: 0 0 14px; }
.login-hero p { max-width: 400px; font-size: 14px; line-height: 1.8; color: #66768f; margin: 0; }
.login-hero .character-stage { width: 620px; height: 400px; flex: 0 0 290px; align-self: center; transform: scale(.68); transform-origin: center bottom; margin: -45px 0 4px; }
.auth-centers { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-centers span { padding: 8px 12px; border: 1px solid #dbe3ef; border-radius: 8px; background: #ffffffa6; font-size: 12px; color: #526581; }
.login-screen .login-card { position: relative; min-height: 680px; padding: 58px 48px 34px; border-radius: 0; box-shadow: none; gap: 20px; align-content: center; }
#loginScreen .login-language-toggle { position: absolute; top: 20px; right: 24px; min-height: 34px; height: 34px; margin: 0; padding: 0 12px; background: #f4f7fc; border: 1px solid #dce5f3; color: #315784; font-size: 12px; }
#loginScreen .login-language-toggle:hover { background: #eaf1fc; color: #244b80; }
.login-card .login-brand-logo { flex-direction: column; gap: 8px; margin: 0 0 6px; }
.login-card .login-logo-image { width: 156px; height: 48px; filter: none; }
.login-card .login-brand-logo small { margin: 0; font-size: 10px; letter-spacing: .045em; color: #748196; }
.login-card h2 { font-size: 26px; line-height: 1.4; margin: 0 0 6px; text-align: center; letter-spacing: -.02em; }
.login-card p:not(.eyebrow) { font-size: 13px; line-height: 1.65; margin: 0; }
.login-card .line-field { gap: 7px; font-size: 13px; font-weight: 650; color: #34445e; }
.login-card .line-field input { width: 100%; height: 46px; border: 1px solid #d9e1ed; border-radius: 9px; padding: 0 13px; background: #fbfcfe; color: #192b45; font-size: 15px; font-weight: 500; }
.login-card .line-field input:focus, #registerForm .cell-input:focus { outline: none; border-color: #4b79de; box-shadow: 0 0 0 3px #386be514; }
.login-card .password-field > div, .auth-register-password { display: block; position: relative; }
.login-card .password-field input, #registerForm .auth-register-password input { padding-right: 48px; }
.login-card .password-toggle, #registerForm .password-toggle { position: absolute; right: 4px; top: 4px; height: 38px; width: 38px; background: transparent; padding: 0; }
.login-card .remember-option { color: #64748b; font-size: 12px; }
.login-card .remember-option input { accent-color: #2e63dc; height: 15px; width: 15px; }
.login-card button.login-submit { width: 100%; height: 46px; border-radius: 9px; background: #2e63dc; color: #fff; font-size: 14px; box-shadow: 0 5px 12px #2e63dc1a; }
.login-card button.login-submit:hover { background: #2453be; }
.auth-apply-row { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 13px; color: #758196; }
.auth-apply-row .account-apply-link { width: auto; color: #2e63dc; font-size: 13px; padding: 6px 0; }
.login-card .auth-access-note { border-top: 1px solid #edf0f5; padding-top: 18px; font-size: 11px !important; color: #8a95a7 !important; }
.login-screen button:focus-visible, #registerForm button:focus-visible { outline: 3px solid #9eb9f7; outline-offset: 3px; }
#registerModal { padding: 24px; overflow: auto; }
#registerForm { width: min(560px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: 18px; padding: 28px; }
#registerForm header { margin-bottom: 24px; }
#registerForm .eyebrow { font-size: 10px; color: #647b9a; letter-spacing: .06em; margin: 0 0 8px; }
#registerForm h2 { font-size: 24px; margin: 0; }
#registerForm .auth-register-intro { font-size: 13px; font-weight: 400; color: #748197; margin: 10px 0 0; line-height: 1.6; }
#registerForm .purchase-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 0; margin: 0; border: 0; background: transparent; }
#registerForm label { display: grid; align-content: start; gap: 7px; font-size: 13px; color: #43516b; font-weight: 600; }
#registerForm label:nth-child(3), #registerForm label:nth-child(4) { grid-column: 1 / -1; }
#registerForm .cell-input { width: 100%; min-height: 46px; height: 46px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 400; border: 1px solid #d9e1ed; border-radius: 9px; background: #fbfcfe; }
#registerForm textarea.cell-input { height: 68px; resize: vertical; }
#registerPasswordHint { font-size: 11px; color: #7a879a; font-weight: 400; }
#registerForm .modal-help { margin: 20px 0 0; padding: 12px 14px; line-height: 1.65; font-size: 12px; font-weight: 400; background: #f1f6ff; border-color: #e0eaff; color: #52729e; }
#registerForm footer { margin: 22px 0 0; width: auto; padding: 18px 0 0; border-top: 1px solid #edf0f5; display: flex; gap: 10px; justify-content: flex-end; }
#registerForm footer button { min-height: 42px; border-radius: 8px; padding: 0 22px; }
#registerForm #submitRegisterButton { background: #2e63dc; color: white; }
#registerForm button:disabled { opacity: .6; cursor: wait; }
#registerForm .login-error { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.auth-register-success { text-align: center; padding: 22px 8px; }
.auth-success-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #e7f6ee; color: #178551; font-size: 24px; }
.auth-register-success h3 { margin: 14px 0 10px; color: #19334e; font-size: 20px; }
.auth-register-success p { color: #66768a; font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) {
  .login-screen { width: min(620px, calc(100% - 32px)); grid-template-columns: 1fr; margin: 24px auto; min-height: 0; }
  .login-screen .login-hero { min-height: 0; padding: 24px 30px; gap: 18px; }
  .login-hero .character-stage { display: none; }
  .login-hero .auth-company { margin-bottom: 8px; }
  .login-hero h1 { font-size: 24px; margin-bottom: 8px; }
  .auth-centers { display: none; }
  .login-screen .login-card { min-height: 0; padding: 68px 40px 30px; }
}
@media (max-width: 480px) {
  .login-screen { margin: 12px auto; width: calc(100% - 24px); border-radius: 16px; }
  .login-screen .login-hero { padding: 22px; }
  .login-hero h1 { font-size: 21px; }
  .login-hero p { font-size: 12px; }
  .login-screen .login-card { padding: 66px 24px 24px; gap: 18px; }
  #registerModal { padding: 12px; }
  #registerForm { padding: 22px; max-height: calc(100dvh - 24px); }
  #registerForm .purchase-form-grid { grid-template-columns: 1fr; gap: 14px; }
  #registerForm label { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .login-screen .character, .login-screen .eye { animation: none !important; transition: none !important; }
}
