/* Brain WebMail · Private sign in. Local assets and system typography. */
:root { color-scheme: light; --sans: "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --display: Georgia, "Times New Roman", serif; --ink: #27323a; --muted: #536570; --accent: #277a98; }
* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body { background: #f7fafb; color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input { font: inherit; }
::selection { background: #cce6f1; color: var(--text, var(--ink)); }
a:focus-visible, button:focus-visible { outline: 3px solid #5b9eb9; outline-offset: 4px; }
.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 42px clamp(32px, 5vw, 90px) 30px; background: #dde7ec; color: var(--ink); }
.login-story::after { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid #779bad2b; border-radius: 50%; bottom: -220px; left: -190px; pointer-events: none; }
.story-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; text-decoration: none; color: #eff5f8; font-size: 25px; font-weight: 600; letter-spacing: -.8px; }
.story-brand .brand-logo { display: block; width: 260px; max-width: 100%; height: auto; }
.story-content { margin: auto 0; padding: 64px 0 25px; position: relative; z-index: 1; }
.story-content h1 { font: 400 clamp(38px, 4.6vw, 70px)/1.08 var(--display); letter-spacing: -2.5px; margin: 0; }
.story-content h1 em { font-weight: 400; color: #2c718d; }
.story-description { margin: 25px 0 0; color: #536570; font-size: 13px; line-height: 1.85; }
.story-art { display: block; width: min(100%, 430px); height: auto; margin: 25px auto 0; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 60px 38px 25px; }
.login-card { width: 100%; max-width: 350px; margin: auto 0; padding: 40px 0; }
.login-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; background: #e6f1f6; border: 1px solid #cfE2ec; border-radius: 14px; color: #50839a; }
.login-heading h2 { margin: 0; font: 400 39px/1.2 var(--display); letter-spacing: -1.2px; }
.login-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
#login-form > label { display: block; margin-bottom: 21px; }
#login-form label > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; color: #27323a; letter-spacing: .1px; }
#login-form input:not([type="hidden"]) { width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #dce5e5; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
#login-form input::placeholder { color: #647985; opacity: 1; }
#login-form input:focus { border-color: #4e95b4; box-shadow: 0 0 0 3px #abd3e64d; }
.btn-primary { width: 100%; min-height: 49px; margin-top: 6px; border: 1px solid #277a98; border-radius: 8px; padding: 12px 18px; background: #277a98; color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .2px; transition: background .15s, box-shadow .15s; }
.btn-primary:hover { background: #1f607c; box-shadow: 0 5px 18px #277a9820; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.login-footer { padding-top: 30px; text-align: center; color: #626f76; font-size: 12px; }
.alert { margin: 0 0 24px; padding: 13px 15px; border: 1px solid; border-radius: 8px; font-size: 12px; line-height: 1.65; }
.alert.error { background: #fff1f1; color: #a03f45; border-color: #edcdcf; }
.alert.info { background: #e7f2f8; color: #38677e; border-color: #bfd9e6; }
/* Preserve the existing bot-detection field outside the visible layout. */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { .login-layout { grid-template-columns: 52% 48%; } .login-story { padding-left: 12%; padding-right: 12%; } }
@media (max-width: 1050px) { .login-story { padding: 35px; } .story-content h1 { font-size: 48px; letter-spacing: -1.8px; } .story-content { padding-top: 55px; } }
@media (max-width: 768px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: max(24px, env(safe-area-inset-top)) 28px 28px; }
  .story-brand { font-size: 22px; gap: 9px; }
  .story-brand .brand-logo { width: 220px; height: auto; }
  .story-content { margin: 0; padding: 35px 0 0; }
  .story-content h1 { font-size: 40px; line-height: 1.05; letter-spacing: -1.5px; }
  .story-description { font-size: 11px; margin-top: 18px; }
  .story-description br { display: none; }
  .story-art { display: none; }
  .login-panel { padding: 0 28px max(24px, env(safe-area-inset-bottom)); }
  .login-card { max-width: 420px; padding: 34px 0 10px; }
  .login-symbol { width: 38px; height: 38px; }
  .login-heading { margin-bottom: 26px; }
  .login-heading h2 { font-size: 31px; }
  .login-heading > p:last-child { font-size: 12px; margin-top: 8px; }
  #login-form input:not([type="hidden"]) { min-height: 50px; font-size: 16px; }
  #login-form > label { margin-bottom: 19px; }
  .btn-primary { min-height: 50px; font-size: 13px; }
  .login-footer { padding-top: 30px; }
}
@media (max-width: 360px) { .login-story { padding-left: 22px; padding-right: 22px; } .story-content h1 { font-size: 36px; } .login-panel { padding-left: 22px; padding-right: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
