/* FlyHire Connect CRM: sign in. LOGIN-REWRITE-2026-11-21.
   Same dark blue as the app, self-contained so this page never depends on the app shell loading.
   Left: the workspace clock and a real "is the CRM up" check. Right: the form. */

@font-face{font-family:'Sora';src:url('/fonts/sora-latin.woff2') format('woff2');font-weight:100 800;font-display:swap;}
@font-face{font-family:'Plus Jakarta Sans';src:url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');font-weight:200 800;font-display:swap;}

:root{
  --bg:#050F1D;
  --surface:#071729;
  --panel:#0A1B2E;
  --panel-2:#0F2238;
  --border:#17304A;
  --border-soft:#102338;

  --text:#EAEDF5;
  --text-dim:#ADB9D1;
  --text-faint:#8291AC;

  --accent:#1361FF;
  --accent-2:#5B9BFF;
  --accent-dark:#0B45C4;
  --accent-soft:rgba(19,97,255,.16);
  --accent-line:rgba(19,97,255,.4);

  --good:#17D9A6;
  --good-soft:rgba(23,217,166,.14);
  --bad:#F0594E;
  --bad-soft:rgba(240,89,78,.14);
  --bad-ink:#FFC9C4;
  --warn:#E0A83E;

  --fs-sm:12px;
  --mono:ui-monospace,SFMono-Regular,Consolas,Menlo,monospace;
}
/* The form side follows the theme the person chose in the app; the clock side stays dark in both. */
:root[data-theme="light"]{
  --bg:#F3F5FA; --surface:#FFFFFF; --panel:#FFFFFF; --panel-2:#F1F4F9;
  --border:#DCE3EE; --border-soft:#E7ECF4;
  --text:#151B27; --text-dim:#3A4454; --text-faint:#545D71;
  --accent-2:#2563D6; --accent-soft:rgba(19,97,255,.10); --accent-line:rgba(19,97,255,.32);
  --good:#0C8565; --good-soft:rgba(12,133,101,.10); --bad:#D53A2F; --bad-ink:#8E1F17;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1{margin:0;}
button{font-family:inherit;}
:focus-visible{outline:2px solid var(--accent-2); outline-offset:2px;}

.login-shell{
  min-height:100vh; display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(400px,1fr);
}

/* ---------- left: workspace clock ---------- */
.login-brand{
  --accent-2:#5B9BFF; --text-faint:#8291AC;   /* always the dark palette here */
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:40px clamp(36px,4.5vw,76px) 36px;
  background:
    radial-gradient(1100px 700px at 0% 110%, rgba(19,97,255,.20), transparent 60%),
    radial-gradient(700px 500px at 100% -10%, rgba(91,155,255,.08), transparent 60%),
    #040C17;
  color:#EAEDF5;
  border-right:1px solid #0F2238;
}
/* A faint ring behind the clock, like a dial face. Decoration only. */
.login-brand::before{
  content:''; position:absolute; width:min(78vh,720px); aspect-ratio:1; border-radius:50%;
  left:-14%; top:50%; transform:translateY(-50%);
  border:1px solid rgba(91,155,255,.10);
  box-shadow:0 0 0 70px rgba(91,155,255,.025), 0 0 0 140px rgba(91,155,255,.018);
  pointer-events:none;
}
.login-brand > *{position:relative;}

.brand-top, .mobile-brand{display:flex; align-items:center; gap:11px;}
.brand-logo{height:30px; width:auto; display:block; border-radius:6px;}
.brand-name{font-family:'Sora',sans-serif; font-weight:700; font-size:15px; letter-spacing:.01em; color:inherit;}
.brand-name span{color:var(--accent-2); font-weight:600;}

.brand-clock{margin:auto 0;}
.clock-label{
  font-size:var(--fs-sm); font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#8291AC; margin-bottom:10px;
}
.clock-time{
  font-family:'Sora',sans-serif; font-weight:300; line-height:.95; letter-spacing:-.04em;
  font-size:clamp(64px,9.5vw,148px); color:#fff;
  font-variant-numeric:tabular-nums;
}
.clock-time .ampm{font-size:.28em; font-weight:500; letter-spacing:.02em; color:#5B9BFF; margin-left:.25em; vertical-align:.95em;}
.clock-time .colon{color:#5B9BFF; animation:tick 2s steps(1) infinite;}
@keyframes tick{50%{opacity:.35;}}
.clock-date{margin-top:16px; font-size:clamp(15px,1.25vw,18px); color:rgba(234,237,245,.78);}

.brand-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13px; color:rgba(234,237,245,.6);
}
.status{display:inline-flex; align-items:center; gap:8px;}
.status .dot{width:8px; height:8px; border-radius:50%; background:#8291AC; flex:none;}
.status[data-state="up"] .dot{background:#17D9A6; box-shadow:0 0 0 3px rgba(23,217,166,.16);}
.status[data-state="down"] .dot{background:#F0594E; box-shadow:0 0 0 3px rgba(240,89,78,.18);}
.status[data-state="down"]{color:#FFC9C4;}

/* ---------- right: form ---------- */
.login-form-panel{
  display:flex; align-items:center; justify-content:center;
  padding:40px 24px;
  background:radial-gradient(900px 500px at 85% -10%, rgba(19,97,255,.10), transparent 60%), var(--bg);
}
.login-card{width:100%; max-width:380px;}
.mobile-brand{display:none; margin-bottom:22px;}
.mobile-strip{
  display:none; align-items:center; justify-content:space-between; gap:10px;
  font-size:13px; color:var(--text-dim);
  border:1px solid var(--border); background:var(--surface); border-radius:10px;
  padding:9px 12px; margin-bottom:24px;
}
.mobile-strip b{font-family:'Sora',sans-serif; font-weight:600; color:var(--text); font-variant-numeric:tabular-nums;}

.card-title{font-family:'Sora',sans-serif; font-size:26px; font-weight:700; letter-spacing:-.01em; color:var(--text); margin-bottom:6px;}
.login-card .sub{font-size:14px; color:var(--text-dim); margin-bottom:22px; line-height:1.5;}
.muted-line{padding:10px 0; color:var(--text-dim); font-size:14px;}

.mode-tabs{
  display:flex; gap:4px; padding:4px; margin-bottom:22px;
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
}
.mode-tab{
  flex:1; border:0; background:transparent; cursor:pointer; white-space:nowrap;
  padding:9px 10px; border-radius:7px; font-size:13px; font-weight:600; color:var(--text-dim);
  transition:background .15s, color .15s;
}
.mode-tab:hover{color:var(--text);}
.mode-tab.active{background:var(--accent); color:#fff;}
.mode-tab:disabled{opacity:.5; cursor:default;}

.field{margin-bottom:16px;}
.field label, .label-row{
  display:block; font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:7px;
}
.label-row{display:flex; align-items:baseline; justify-content:space-between; gap:10px;}
.label-row label{margin:0;}
.field .input-wrap{
  position:relative; display:flex; align-items:center;
  background:var(--panel); border:1px solid var(--border); border-radius:10px;
  transition:border-color .15s, box-shadow .15s;
}
.field .input-wrap:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
.field .input-wrap .ic{flex:none; width:40px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--text-faint);}
.field .input-wrap .ic svg{width:16px; height:16px;}
.field input{
  flex:1; min-width:0; background:transparent; border:0; outline:0;
  color:var(--text); font-size:15px; font-family:inherit; padding:0 12px 0 0; height:44px;
}
.field input::placeholder{color:var(--text-faint);}
.field .toggle-eye{flex:none; width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--text-faint); cursor:pointer; background:none; border:0; padding:0;}
.field .toggle-eye:hover{color:var(--text);}
.field .toggle-eye svg{width:16px; height:16px;}

.forgot-link{font-size:13px; font-weight:600; color:var(--accent-2); background:none; border:0; cursor:pointer; padding:2px; min-height:24px;}
.forgot-link:hover{text-decoration:underline;}

.check-remember{display:flex; align-items:center; gap:9px; min-height:24px; margin:2px 0 22px; font-size:13px; color:var(--text-dim); cursor:pointer; user-select:none;}
.check-remember input{accent-color:var(--accent); width:20px; height:20px; cursor:pointer; flex:none; margin:0;}

.btn-submit{
  width:100%; height:46px; border-radius:10px; border:0; cursor:pointer;
  background:linear-gradient(180deg, var(--accent), var(--accent-dark));
  color:#fff; font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 14px 30px -14px rgba(19,97,255,.6);
  transition:filter .15s, transform .15s;
}
.btn-submit:hover{filter:brightness(1.08);}
.btn-submit:active{transform:translateY(1px);}
.btn-submit:disabled{opacity:.65; cursor:default; filter:none;}
.btn-submit .spinner{width:15px; height:15px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:spin .7s linear infinite; display:none;}
.btn-submit.loading .spinner{display:inline-block;}
@keyframes spin{to{transform:rotate(360deg);}}

.error-banner, .note-banner{
  display:none; align-items:flex-start; gap:9px;
  font-size:13px; line-height:1.5; border-radius:10px; padding:11px 13px; margin-bottom:16px;
}
.error-banner{background:var(--bad-soft); border:1px solid rgba(240,89,78,.35); color:var(--bad-ink);}
.note-banner{background:var(--good-soft); border:1px solid rgba(23,217,166,.32); color:var(--text);}
.error-banner.show, .note-banner.show{display:flex;}
.error-banner .ic, .note-banner .ic{flex:none; margin-top:1px;}
.error-banner .ic{color:var(--bad);}
.note-banner .ic{color:var(--good);}
.error-banner .ic svg, .note-banner .ic svg{width:15px; height:15px;}

.signup-domain-note{
  font-size:13px; color:var(--text-dim); line-height:1.55;
  background:var(--good-soft); border:1px solid rgba(23,217,166,.3);
  border-radius:9px; padding:9px 12px; margin:-2px 0 18px;
}
.guest-no-account{
  display:flex; align-items:center; gap:8px; margin-bottom:18px; padding:9px 12px;
  border:1px solid rgba(23,217,166,.3); background:var(--good-soft); border-radius:9px;
  font-size:13px; color:var(--text-dim);
}
.guest-no-account .ic{color:var(--good); flex:none; display:flex;}
.guest-no-account .ic svg{width:15px; height:15px;}

.login-foot-note{text-align:center; font-size:13px; color:var(--text-faint); margin-top:24px; line-height:1.5;}

.verify-lead{font-size:14px; line-height:1.6; color:var(--text-dim); margin:0 0 16px;}
.code-input{font-family:var(--mono)!important; font-size:22px!important; letter-spacing:.4em; text-align:center; font-weight:600; padding-left:14px!important;}
.code-input::placeholder{letter-spacing:.4em; opacity:.35;}
.verify-actions{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; flex-wrap:wrap;}
.linkish{background:none; border:none; padding:2px; cursor:pointer; font-size:13px; font-weight:600; color:var(--accent-2); text-decoration:underline; text-underline-offset:3px; min-height:24px;}
.linkish:hover{opacity:.85;}

/* ---------- phones: the form owns the screen, the clock shrinks to one line above it ---------- */
@media (max-width:900px){
  .login-shell{grid-template-columns:1fr;}
  .login-brand{display:none;}
  .mobile-brand{display:flex;}
  .mobile-strip:not([hidden]){display:flex;}
  .login-form-panel{align-items:flex-start; padding:32px 20px;}
}
@media (prefers-reduced-motion:reduce){
  .clock-time .colon{animation:none;}
  .btn-submit, .mode-tab, .field .input-wrap{transition:none;}
}
