/* XMT account pages: sign in, register, forgot, reset, verify email, authenticator.
   Everything is scoped to body.xmt-auth, so no other page changes. Loaded after
   xmt-tokens.css, public-pages.css and (where used) security.css.
   Look: navy depth with a CSS-only grid, logo card on the left, thin-bordered translucent card on the right.
   Orbitron and Rajdhani for headings and labels only; form text and inputs stay in the body font.
   Fonts are the same files the home page loads (latin subset), so nothing new is downloaded. */

@font-face{font-family:Orbitron;font-style:normal;font-weight:400 900;font-display:swap;src:url(../xmat-fonts/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2')}
@font-face{font-family:Rajdhani;font-style:normal;font-weight:400;font-display:swap;src:url(../xmat-fonts/LDIxapCSOBg7S-QT7p4HM-Y.woff2) format('woff2')}
@font-face{font-family:Rajdhani;font-style:normal;font-weight:500 600;font-display:swap;src:url(../xmat-fonts/LDI2apCSOBg7S-QT7pb0EPOreec.woff2) format('woff2')}

body.xmt-public-page.xmt-auth{
  --ff-head:Orbitron,var(--font);
  --ff-label:Rajdhani,var(--font);
  --field-line:rgba(50,159,214,.45);
  background-color:var(--navy-1)!important;
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px)!important;
  background-size:48px 48px!important;
}

/* ---- Header and footer ------------------------------------------------- */
body.xmt-auth .xmt-page-header{border-bottom-color:var(--glass-line)}
body.xmt-auth .xmt-page-brand>span{font:600 14px/1.2 var(--ff-head);letter-spacing:.04em}
body.xmt-auth .xmt-page-brand b{font-weight:inherit}
body.xmt-auth .xmt-page-brand small{font:400 12px/1.3 var(--font);letter-spacing:0}
body.xmt-auth .xmt-page-footer{border-top-color:var(--glass-line)}
body.xmt-auth .xmt-page-footer>span{font:500 12px var(--ff-head);letter-spacing:.06em}

/* ---- Logo card --------------------------------------------------------- */
body.xmt-auth .xmt-original-art{
  display:block;width:200px;aspect-ratio:1;margin:0 0 32px;
  border:1px solid var(--card-line);border-radius:20px;overflow:hidden;
  box-shadow:-8px 0 28px rgba(var(--glow-orange),.2),8px 0 28px rgba(var(--glow-blue),.15),0 10px 30px rgba(0,0,0,.4);
}
body.xmt-auth .xmt-original-art img{display:block;width:100%;height:100%;object-fit:cover}

/* ---- Two columns: art left, card right --------------------------------- */
body.xmt-public-page.xmt-auth .xmt-auth-layout{align-items:center;animation:xmt-auth-in .4s var(--ease) both}
body.xmt-auth .xmt-page-art h1{
  max-width:16ch;margin:0 0 16px;
  font:600 clamp(26px,3.2vw,44px)/1.2 var(--ff-head);letter-spacing:.02em;color:var(--text);
}
body.xmt-auth .xmt-page-description{max-width:42ch;font-size:17px;color:var(--text-2)}

/* ---- Translucent card -------------------------------------------------- */
body.xmt-public-page.xmt-auth .login-box,
body.xmt-public-page.xmt-auth .register-card,
body.xmt-auth .xmt-security-card{
  background:var(--glass)!important;border:1px solid var(--glass-line)!important;border-radius:var(--r-panel)!important;box-shadow:none!important;
}
body.xmt-public-page.xmt-auth .brand,
body.xmt-public-page.xmt-auth .register-title{
  margin:0 0 8px!important;font:600 20px/1.3 var(--ff-head)!important;letter-spacing:.02em!important;
}
body.xmt-auth .xmt-security-card h1{margin:0 0 16px;font:600 clamp(22px,4vw,28px)/1.25 var(--ff-head);letter-spacing:.02em}
body.xmt-auth .xmt-security-card h2{font:600 16px/1.3 var(--ff-head);letter-spacing:.02em}

/* ---- Labels (Rajdhani, sentence case) and fields (body font) ----------- */
body.xmt-public-page.xmt-auth .login-box label,
body.xmt-auth .xmt-field-label,
body.xmt-auth .xmt-security-form label{
  display:block;margin:0 0 8px;font:600 16px/1.3 var(--ff-label);letter-spacing:.02em;color:var(--text-2);
}
body.xmt-public-page.xmt-auth .form-control,
body.xmt-auth .xmt-security-form input:not([type=hidden]){
  min-height:48px;padding:12px 14px;
  background:var(--navy-0)!important;color:var(--text)!important;
  border:1px solid var(--field-line)!important;border-radius:var(--r-control)!important;
  font:400 16px/1.4 var(--font);
}
body.xmt-public-page.xmt-auth .form-control:focus,
body.xmt-auth .xmt-security-form input:not([type=hidden]):focus{border-color:var(--accent)!important;box-shadow:0 0 0 1px var(--accent)!important;outline:none}
body.xmt-auth .xmt-security-form input#otp,
body.xmt-auth .xmt-security-form input#code{font-family:var(--mono);letter-spacing:.12em}
body.xmt-public-page.xmt-auth .form-control:-webkit-autofill,
body.xmt-public-page.xmt-auth .form-control:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--navy-0) inset!important;box-shadow:0 0 0 1000px var(--navy-0) inset!important}
body.xmt-auth .xmt-form-description,body.xmt-auth .sub{font-size:15px;color:var(--text-2)}
body.xmt-auth .xmt-account-switch{border-top-color:var(--glass-line)}
body.xmt-auth .xmt-security-card{width:min(520px,100%)}
body.xmt-auth .xmt-security-card>p,body.xmt-auth .xmt-security-note{color:var(--text-2)}

/* ---- Messages: colour, a 4px edge and a text prefix, so colour is never the only cue.
   They stay exactly where the PHP prints them. ------------------------------------ */
body.xmt-public-page.xmt-auth .alert,
body.xmt-auth .xmt-security-alert,
body.xmt-auth .xmt-security-card p[role="status"]{
  display:block;margin:0 0 16px;padding:12px 14px!important;
  border:1px solid var(--danger-line)!important;border-left:4px solid var(--danger)!important;border-radius:var(--r-control);
  background:var(--danger-bg)!important;color:var(--danger)!important;
  font:400 14px/1.5 var(--font);
}
body.xmt-public-page.xmt-auth .alert::before,
body.xmt-auth .xmt-security-alert::before{content:"Error: ";font-weight:600}
body.xmt-public-page.xmt-auth .alert-success,
body.xmt-auth .xmt-security-card p[role="status"]{
  border-color:var(--ok-line)!important;border-left-color:var(--ok)!important;background:var(--ok-bg)!important;color:var(--ok)!important;
}
body.xmt-public-page.xmt-auth .alert-success::before,
body.xmt-auth .xmt-security-card p[role="status"]::before{content:"Success: ";font-weight:600}

/* ---- Logo above the security cards ------------------------------------- */
body.xmt-auth .xmt-security-layout{animation:xmt-auth-in .4s var(--ease) both}
body.xmt-auth .xmt-auth-mark{display:flex;justify-content:center;margin:0 0 24px}
body.xmt-auth .xmt-auth-mark .xmt-original-art{width:120px;margin:0}

/* ---- Reveal: once, transform and opacity only -------------------------- */
@keyframes xmt-auth-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---- Tablet and phone: the logo shrinks, the form follows directly ----- */
@media(max-width:900px){
  body.xmt-auth .xmt-original-art{width:140px;margin:0 0 16px}
  body.xmt-auth .xmt-page-art h1{max-width:none}
}
@media(max-width:720px){
  body.xmt-public-page.xmt-auth .xmt-auth-layout{padding:24px 16px 40px;gap:20px}
  body.xmt-auth .xmt-original-art{display:block;width:120px;margin:0 0 12px;border-radius:16px}
  body.xmt-auth .xmt-page-art h1{font-size:24px;margin-bottom:8px}
  body.xmt-auth .xmt-page-description{font-size:15px}
  body.xmt-auth .xmt-security-layout{padding:24px 16px 40px}
  body.xmt-auth .xmt-auth-mark{margin-bottom:16px}
  body.xmt-public-page.xmt-auth .login-box,
  body.xmt-public-page.xmt-auth .register-card,
  body.xmt-auth .xmt-security-card{padding:24px!important}
}

@media(prefers-reduced-motion:reduce){
  body.xmt-public-page.xmt-auth .xmt-auth-layout,body.xmt-auth .xmt-security-layout{animation:none}
}
