/* ==========================================================================
   Fleetu Host - account pages (/login and /signup)

   Deliberately its own palette: white base, brand-blue accent. The visitor
   always knows they have stepped out of the marketing site and into the
   account area. The accent tracks settings.primary_color from site.json, so
   the two never drift apart. Nothing here depends on style.css, so both pages
   render identically even if the main stylesheet changes.
   ========================================================================== */

:root{
  --brand:        #3b5bfd;   /* site primary */
  --brand-strong: #2743e0;   /* links and headings that sit on white */
  --brand-soft:   #6b8aff;   /* light end of the button gradient */
  --brand-tint:   #e3e9ff;   /* focus rings and alert borders */
  --brand-mist:   #f4f7ff;   /* alert background */

  --ink:    #1c1f2a;
  --ink-2:  #616579;
  --ink-3:  #949aad;
  --line:   #dde3f6;
  --line-2: #e9eefb;

  --radius: 14px;
  --shadow: 0 24px 60px rgba(59, 91, 253, .10), 0 4px 14px rgba(28, 31, 42, .05);
}

*{box-sizing:border-box}

html,body{height:100%}

body.auth-body{
  margin:0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  position:relative;
  overflow-x:hidden;
}

/* Soft blue atmosphere behind the card - two blurred blooms, no images. */
body.auth-body::before,
body.auth-body::after{
  content:"";
  position:fixed;
  border-radius:50%;
  filter:blur(90px);
  z-index:0;
  pointer-events:none;
}
body.auth-body::before{
  width:520px;height:520px;
  top:-190px;right:-140px;
  background:radial-gradient(circle,rgba(59,91,253,.30),rgba(59,91,253,0) 68%);
}
body.auth-body::after{
  width:460px;height:460px;
  bottom:-180px;left:-150px;
  background:radial-gradient(circle,rgba(120,150,255,.26),rgba(120,150,255,0) 68%);
}

.auth-wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 20px;
}

/* ---------------------------------------------------------------- card */
.auth-card{
  width:100%;
  max-width:442px;
  background:#fff;
  border:1px solid var(--line-2);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:40px 38px 34px;
}

.auth-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  font-size:21px;
  letter-spacing:-.03em;
  margin-bottom:26px;
}
.auth-brand .logo-mark{
  width:34px;height:34px;
  display:grid;place-items:center;
  color:var(--brand);
  flex:none;
  transition:transform .2s;
}
.auth-brand .logo-mark svg{width:32px;height:32px}
.auth-brand:hover .logo-mark{transform:scale(1.06)}

.auth-title{
  margin:0;
  text-align:center;
  font-size:26px;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.2;
}
.auth-sub{
  margin:9px 0 0;
  text-align:center;
  font-size:14.5px;
  line-height:1.55;
  color:var(--ink-2);
}

/* --------------------------------------------------------------- alerts */
.auth-alert{
  margin-top:20px;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  line-height:1.5;
  border:1px solid transparent;
}
.auth-alert-error{
  background:var(--brand-mist);
  border-color:var(--brand-tint);
  color:var(--brand-strong);
}
.auth-alert-ok{
  background:#f1fdf6;
  border-color:#c9f5df;
  color:#0d7a4d;
}

/* ----------------------------------------------------------------- form */
.auth-form{
  margin-top:24px;
  display:flex;
  flex-direction:column;
  gap:15px;
}
.auth-field{display:flex;flex-direction:column;gap:7px}
.auth-field > span{
  font-size:13px;
  font-weight:600;
  color:var(--ink-2);
  letter-spacing:.01em;
}
.auth-field input[type=text],
.auth-field input[type=email],
.auth-field input[type=password]{
  width:100%;
  height:47px;
  padding:0 15px;
  font-size:15px;
  font-family:inherit;
  color:var(--ink);
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  outline:none;
  transition:border-color .16s, box-shadow .16s;
}
.auth-field input::placeholder{color:var(--ink-3)}
.auth-field input:hover{border-color:#c7d0f5}
.auth-field input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px var(--brand-tint);
}
.auth-field input:invalid:not(:placeholder-shown){border-color:#9fb4f7}

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13.5px;
}
.auth-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--ink-2);
  cursor:pointer;
  user-select:none;
}
.auth-check input{
  width:16px;height:16px;
  accent-color:var(--brand);
  cursor:pointer;
  margin:0;
}
.auth-link{
  color:var(--brand-strong);
  font-weight:600;
  text-decoration:none;
}
.auth-link:hover{text-decoration:underline}

.auth-hint{
  font-size:12.5px;
  line-height:1.5;
  color:var(--ink-3);
  margin:-4px 0 0;
}

.auth-submit{
  margin-top:4px;
  height:49px;
  border:0;
  border-radius:var(--radius);
  background:linear-gradient(135deg,var(--brand-soft),var(--brand-strong));
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(59,91,253,.28);
  transition:transform .16s, box-shadow .16s, filter .16s;
}
.auth-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 38px rgba(59,91,253,.34);
  filter:saturate(1.08);
}
.auth-submit:active{transform:translateY(0)}
.auth-submit:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;
}
.auth-submit[disabled]{opacity:.7;cursor:progress;transform:none}

/* ------------------------------------------------------------- footers */
.auth-alt{
  margin:22px 0 0;
  text-align:center;
  font-size:14.5px;
  color:var(--ink-2);
}
.auth-alt a{color:var(--brand-strong);font-weight:700;text-decoration:none}
.auth-alt a:hover{text-decoration:underline}

.auth-back{
  display:block;
  margin-top:20px;
  text-align:center;
  font-size:13.5px;
  color:var(--ink-3);
  text-decoration:none;
}
.auth-back:hover{color:var(--brand-strong)}

.auth-terms{
  margin:18px 0 0;
  text-align:center;
  font-size:12.5px;
  line-height:1.6;
  color:var(--ink-3);
}

/* The sign-in button sits alone on the login screen; give it breathing room. */
.auth-form-wide .auth-submit{margin-top:8px}

/* ------------------------------------------------------------ responsive */
@media(max-width:520px){
  .auth-wrap{padding:32px 16px}
  .auth-card{
    padding:32px 24px 28px;
    border-radius:22px;
  }
  .auth-title{font-size:23px}
  .auth-brand{font-size:19px;margin-bottom:22px}
}

@media(prefers-reduced-motion:reduce){
  *{transition:none !important}
}
