/* Sign-in and first-time setup (erp/auth/login.blade.php, erp/pages/setup.blade.php).
   Brand family v5 (25 Nov 2026): the coolixa.in look on a calm, centred card. The website's warm
   desk and navy / orange tokens, its font (Inter, self-hosted), its logo lockup and its pill button;
   labels above fields, 8 px fields, a 16 px card, no shadows or decoration. Light or dark follows
   the website's rule (theme-early.js in the head: a picked theme, else the Mumbai clock). */

@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../../fonts/noto-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../../fonts/inter-var.woff2) format('woff2');unicode-range:U+0000,U+0020-002C,U+002E-007E,U+00A0-00AC,U+00AE-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+2002,U+2009,U+200B,U+2013-2014,U+2018-201A,U+201C-201E,U+2022,U+2026,U+2032-2033,U+2039-203A,U+2044,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../../fonts/noto-sans-latin.woff2) format('woff2');unicode-range:U+002D;}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url(../../fonts/noto-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+2212,U+FFFD;}

/* the website's tokens (coolixa.in globals.css), with the ERP's contrast fixes (theme.css) */
:root, :root[data-theme="light"]{
  --bg:#F3F1EC; --card:#FFFFFF; --border:#D9D3C8; --border-strong:#C9C2B5; --input-border:#958D7F;
  --text:#0E1B2C; --muted:#566070; --faint:#646D7B;
  --navy:#0E1B2C; --accent:#F08A1C; --accent-text:#A4520A; --primary:#0E1B2C; --primary-hover:#1C2D44; --on-primary:#F3F1EC;
  --focus:#A4520A; --danger:#B3403A; --danger-bg:#F9EAE8; --link:#2C6AA0;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0A111C; --card:#111A28; --border:#233147; --border-strong:#2E3E57; --input-border:#566A88;
  --text:#EDF0F3; --muted:#9AA6B5; --faint:#8E9AAA;
  --accent:#F59A33; --accent-text:#F7AD57; --primary:#F08A1C; --primary-hover:#F59A33; --on-primary:#0A111C;
  --focus:#F59A33; --danger:#F0736C; --danger-bg:#2E1716; --link:#7DB4E2;
  color-scheme:dark;
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;background:var(--bg);}
body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--text);
  font-family:'Inter','Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;}

.right{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;gap:16px;}
.card{width:100%;max-width:400px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:32px;}

/* the website's logo lockup: mark, "Coolixa", a small spaced capitals line */
.brand{display:flex;align-items:center;gap:12px;margin:0 0 28px;}
.brand img{width:40px;height:auto;flex:0 0 auto;}
.brand .lock{display:flex;flex-direction:column;min-width:0;line-height:1;}
.brand .name{font-size:20px;line-height:24px;font-weight:600;letter-spacing:-0.02em;color:var(--text);}
.brand .tag{margin-top:3px;font-size:10px;line-height:12px;font-weight:500;letter-spacing:0.16em;text-transform:uppercase;color:var(--muted);}

h1, .card h2{margin:0 0 4px;font-size:24px;line-height:30px;font-weight:600;color:var(--text);letter-spacing:-0.02em;}
/* the orange full stop: the website's brand mark after a headline */
h1.dot::after{content:'.';color:var(--accent);}
.lede{margin:0 0 24px;font-size:14px;color:var(--muted);}

/* the error notice: a 3 px rule on the left, not a filled blob */
.err{display:none;margin:0 0 16px;padding:8px 12px;border:1px solid var(--border);border-left:3px solid var(--danger);border-radius:8px;
  background:var(--danger-bg);color:var(--danger);font-size:13px;overflow-wrap:anywhere;}
.err.show{display:block;}
.err .link{color:inherit;font-weight:600;text-decoration:underline;}

.field{margin:0 0 16px;}
.field label{display:block;margin:0 0 6px;font-size:13px;font-weight:500;color:var(--text);}
.input-wrap{position:relative;display:flex;align-items:center;}
.input-wrap .ico{display:none;}
.field input, .field select, .setup-select{width:100%;height:44px;padding:0 14px;border:1px solid var(--input-border);border-radius:8px;background:var(--card);color:var(--text);
  font:inherit;font-size:15px;outline:none;transition:border-color 150ms ease, box-shadow 150ms ease;}
.field input::placeholder{color:var(--faint);opacity:1;}
.field input:focus, .field select:focus{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus);}
.input-wrap.has-toggle input{padding-right:76px;}
.toggle{position:absolute;right:4px;top:4px;bottom:4px;min-width:60px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);
  font:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:background-color 150ms ease, color 150ms ease;}
.toggle:hover{background:var(--bg);color:var(--text);}
.toggle:focus-visible{outline:2px solid var(--focus);outline-offset:0;}

.remember{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;font-size:14px;color:var(--text);cursor:pointer;width:max-content;max-width:100%;}
.remember input{width:16px;height:16px;margin:0;accent-color:var(--navy);}
:root[data-theme="dark"] .remember input{accent-color:var(--accent);}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;}

/* the website's pill: navy on light, orange on dark */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;padding:0 20px;border:1px solid var(--primary);border-radius:999px;
  background:var(--primary);color:var(--on-primary);font:inherit;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;transition:background-color 150ms ease, border-color 150ms ease;}
.btn:hover{background:var(--primary-hover);border-color:var(--primary-hover);}
.btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}
.btn:disabled{opacity:.5;cursor:not-allowed;}

.help{margin:24px 0 0;padding-top:16px;border-top:1px solid var(--border);font-size:13px;color:var(--muted);}
.link{color:var(--link);}
.foot{margin:0;font-size:12px;color:var(--muted);text-align:center;}

/* things the old split-screen page had, in case a cached page still sends them */
.left, .dash-strip{display:none;}

@media (prefers-reduced-motion:reduce){ .field input, .toggle, .btn{transition:none;} }
@media (max-width:480px){
  .right{justify-content:flex-start;padding:24px 16px;}
  .card{padding:24px 20px;}
}
