/* Authentication-only art direction. No dashboard or shared theme overrides. */
body.auth-page {
  --text-main: #384c46; --text-sub: #6e7c74; --primary-strong: #286d59;
  --focus-color: #468d7130;
  display: flex; align-items: stretch; justify-content: flex-start; gap: 0;
  padding: 0 5vw; color: var(--text-main);
  background: radial-gradient(ellipse at 9% 66%, #f6b9a780, transparent 43%),
    radial-gradient(ellipse at 92% 16%, #d0e8d5b3, transparent 48%), #f8f3e9;
  position: relative; isolation: isolate;
}
.auth-page::before { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23766550' opacity='.22' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.auth-topbar { width: 100%; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 29px 0; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; letter-spacing: -.4px; }
.auth-brand img { width: 30px; height: 30px; }
.auth-top-note { display: flex; gap: 8px; align-items: center; color: #627669; font-size: 12px; }
.auth-top-note::before { content: ''; width: 7px; height: 7px; background: #58947b; border-radius: 50%; box-shadow: 0 0 0 4px #58947b12; }
.auth-layout { width: 100%; max-width: 1140px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(35px, 6vw, 90px); padding: 25px 0 42px; }
.auth-hero { position: relative; min-width: 0; align-self: center; }
.auth-eyebrow { display: inline-flex; gap: 8px; align-items: center; color: #5d7667; font-size: 11px; letter-spacing: 2.4px; font-weight: 650; margin-bottom: 20px; }
.auth-eyebrow span { font-size: 18px; letter-spacing: 0; color: #b27958; }
.auth-page .auth-hero h2 { font-size: clamp(32px, 3.6vw, 49px); line-height: 1.32; letter-spacing: -2px; font-weight: 750; margin: 0 0 16px; }
.auth-hero h2 em { font-style: normal; color: #b8715d; position: relative; }
.auth-hero h2 em::after { content: ''; position: absolute; bottom: -5px; left: 3px; right: 3px; height: 7px; border: 2px solid #c88c7166; border-color: #c88c7166 transparent transparent; border-radius: 50%; transform: rotate(-3deg); }
.auth-page .auth-hero > p { font-size: 14px; line-height: 1.9; color: #768277; margin: 0; }
.auth-illustration { position: relative; width: 100%; max-width: 480px; margin: 5px auto 0; }
.auth-illustration::before { content: ''; position: absolute; inset: 21% 3% 7%; border-radius: 50% 50% 45% 45%; background: linear-gradient(145deg, #f3d8c0, #edbdab); border: 1px solid #fff5; transform: rotate(-8deg); }
[data-auth-character] { position: relative; width: 100%; }
[data-auth-character] svg { display: block; width: 100%; height: auto; overflow: visible; }
.character-head { transform-origin: 300px 440px; animation: auth-sway 7s ease-in-out infinite; }
[data-pupil] { transition: transform 120ms ease-out; }
.character-eyes { transform-box: fill-box; transform-origin: center; animation: auth-blink 6.5s infinite; }
.is-shy .character-eyes { animation: none; }
.auth-spark { position: absolute; color: #b97b5b; font-family: Georgia, serif; font-size: 43px; line-height: 1; }
.auth-spark.one { left: 6%; top: 28%; transform: rotate(15deg); }
.auth-spark.two { right: 1%; top: 48%; color: #588b72; font-size: 27px; }
.auth-bubble { position: absolute; right: -9px; top: 16%; padding: 13px 17px; font-size: 12px; font-weight: 600; border: 1px solid #fff9; border-radius: 18px 18px 18px 4px; background: #fffc; color: #74715f; box-shadow: 0 8px 24px #8d6c5210; transform: rotate(5deg); }
.auth-hero-caption { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: -2px; font-size: 11px; color: #8a8878; letter-spacing: 1px; }
.auth-hero-caption::before, .auth-hero-caption::after { content: ''; width: 30px; height: 1px; background: #b7b4a344; }
.auth-page .login-container, .auth-page .register-container { width: 100%; max-width: 470px; margin-left: auto; overflow: visible; background: #ffffff8f; border: 1px solid #ffffffdb; border-radius: 28px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 28px 70px #4664480c, inset 0 1px 0 #fff; }
.auth-page .login-header, .auth-page .register-header { padding: 36px 34px 0; text-align: left; }
.auth-page .auth-logo { width: 40px; height: 40px; margin: 0 0 22px; padding: 9px; background: #edf2e6; border-radius: 14px; box-sizing: content-box; }
.auth-page h1 { font-size: 27px; font-weight: 750; letter-spacing: -.8px; margin-bottom: 10px; }
.auth-page .auth-card-intro { font-size: 13px; color: #6f7c72; margin: 0; line-height: 1.8; }
.auth-page .login-body, .auth-page .register-body { padding: 27px 34px 32px; }
.auth-page .login-tabs .btn-group { padding: 5px; border-radius: 13px; background: #e7ece4b3; gap: 3px; }
.auth-page .login-tabs .btn { min-height: 38px; border: 0; border-radius: 9px !important; padding: 8px 5px; font-size: 12px; white-space: nowrap; color: #778176; background: transparent; box-shadow: none; }
.auth-page .login-tabs .btn-check:checked + .btn { background: #fffffff2; color: #365b48; border: 0; box-shadow: 0 2px 6px #2c513a10; }
.auth-page .login-tabs .btn:hover { background: #ffffff80; color: #365b48; transform: none; }
.auth-page .form-control { min-height: 49px; padding: 12px 15px; background: #ffffff8c; border: 1px solid #bac7b866; border-radius: 12px !important; font-size: 14px; color: #384c46; transition: border-color 160ms, box-shadow 160ms, background 160ms; }
.auth-page .form-control::placeholder { color: #8b9388; font-size: 12px; }
.auth-page .form-control:hover { border-color: #93b09a; }
.auth-page .form-control:focus { background: #ffffffd9; border-color: #5c947b; box-shadow: 0 0 0 4px #5c947b15; }
.auth-page .form-label { font-size: 12px; color: #596b5f; margin-bottom: 8px; font-weight: 600; }
.auth-page .form-text { font-size: 11px; color: #7b867b; line-height: 1.65; }
.auth-page .input-group { margin-bottom: 17px; }
.auth-page .input-group > .bi { left: 16px; color: #819482; }
.auth-page .input-group > .bi + .form-control, .auth-page .input-group > .bi + .auth-password-wrap .form-control { padding-left: 43px; }
.auth-password-wrap { position: relative; width: 100%; min-width: 0; }
.input-group > .auth-password-wrap { flex: 1 1 0; }
.auth-page .auth-password-wrap .form-control { padding-right: 48px; }
.auth-password-toggle { position: absolute; z-index: 6; right: 3px; top: 3px; bottom: 3px; width: 43px; border: 0; background: transparent; border-radius: 9px; color: #7d8c7e; display: grid; place-items: center; cursor: pointer; }
.auth-password-toggle:hover { background: #e1eadb; color: #286d59; }
body.auth-page .btn-login, body.auth-page .btn-register { --control-bg: #376d58; --control-hover: #2b5947; --control-hover-border: #2b5947; min-height: 49px; font-size: 14px; font-weight: 650; border-radius: 12px; background: #376d58; border-color: #376d58; color: #fffef5; box-shadow: 0 5px 12px #376d581a, inset 0 1px 0 #ffffff26; }
body.auth-page .btn.btn-login:hover, body.auth-page .btn.btn-register:hover { background: #2b5947; border-color: #2b5947; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px #376d5829; }
.auth-page .btn:disabled { transform: none; }
.auth-page .btn-code, .auth-page #sendCodeBtn { min-height: 49px; border-radius: 0 12px 12px 0; font-size: 11px; background: #ecf0e4; color: #416b51; border-color: #bac7b866; white-space: nowrap; padding: 10px 12px; }
.auth-page .input-group:has(#sendCodeBtn) .form-control { border-radius: 12px 0 0 12px !important; }
.auth-page .captcha-container #captchaImage { height: 49px !important; border: 1px solid #bac7b866 !important; border-radius: 12px !important; object-fit: contain; background: #ffffffe6; }
.auth-page #registerSection, .auth-page .login-link { font-size: 12px; padding-top: 6px; }
.auth-page a { color: #397256; font-weight: 600; text-underline-offset: 4px; }
.auth-page a:hover { color: #21543b; text-decoration: underline !important; }
.auth-page .text-muted { color: #7b8578 !important; }
.auth-page .auth-footer { margin: 0 auto; width: 100%; max-width: 1320px; justify-content: space-between; padding: 19px 0 24px; color: #8b9184; font-size: 11px; }
.auth-footer-brand { display: flex; gap: 10px; }
.auth-footer-note { letter-spacing: 1px; }
.auth-register-page .auth-layout { padding-top: 16px; }
.auth-register-page .auth-hero { position: sticky; top: 32px; }
.auth-register-page .register-header { padding-top: 26px; }
.auth-register-page .auth-logo { margin-bottom: 14px; }
.auth-register-page .register-body { padding-top: 21px; }
.auth-register-page .register-body .mb-3 { margin-bottom: 14px !important; }
.auth-register-page .register-body .input-group { margin-bottom: 0; }
@keyframes auth-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg); } }
@keyframes auth-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@media (min-width: 1500px) { .auth-layout { max-width: 1200px; } }
@media (max-width: 1000px) { .auth-layout { gap: 30px; } .auth-page .auth-hero h2 { font-size: 34px; } .auth-page .login-body, .auth-page .register-body { padding-left: 25px; padding-right: 25px; } .auth-page .login-header, .auth-page .register-header { padding-left: 25px; padding-right: 25px; } .auth-bubble { right: 0; font-size: 11px; } }
@media (max-width: 760px) {
  body.auth-page { padding: 0 22px; }
  .auth-topbar { padding: 21px 0; }
  .auth-brand { font-size: 14px; }.auth-brand img { width: 26px; height: 26px; }
  .auth-top-note { font-size: 10px; }
  .auth-layout { display: flex; flex-direction: column; gap: 0; max-width: 460px; padding: 10px 0 22px; margin: auto; }
  .auth-hero { width: 100%; text-align: center; }
  .auth-eyebrow { display: none; }
  .auth-page .auth-hero h2 { font-size: 28px; letter-spacing: -1px; line-height: 1.4; margin-bottom: 9px; }
  .auth-hero h2 br { display: initial; }
  .auth-page .auth-hero > p { font-size: 12px; }
  .auth-illustration { width: 210px; height: 162px; margin: 8px auto 0; overflow: hidden; }
  .auth-illustration::before { inset: 16% 1% -17%; }
  [data-auth-character] { margin-top: -16px; }
  .auth-bubble, .auth-spark, .auth-hero-caption { display: none; }
  .auth-page .login-container, .auth-page .register-container { position: relative; margin: 0; border-radius: 23px; }
  .auth-page .login-header, .auth-page .register-header { padding: 25px 24px 0; }
  .auth-page .login-header .auth-logo, .auth-page .register-header .auth-logo { display: none; }
  .auth-page h1 { font-size: 23px; }
  .auth-page .login-body, .auth-page .register-body { padding: 22px 24px 26px; }
  .auth-register-page .auth-hero { position: relative; top: auto; }
  .auth-register-page .auth-layout { padding-top: 8px; }
  .auth-page .auth-footer { padding: 16px 0 22px; justify-content: center; }
  .auth-footer-note { display: none; }
}
@media (max-width: 380px) { body.auth-page { padding: 0 14px; } .auth-top-note { display: none; } .auth-page .login-body, .auth-page .register-body { padding-left: 18px; padding-right: 18px; } .auth-page .auth-hero h2 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .character-head, .character-eyes { animation: none; } [data-pupil] { transition: none; } }
@supports not (backdrop-filter: blur(1px)) { .auth-page .login-container, .auth-page .register-container { background: #fbfcf3ed; } }
