/* ==========================================================================
   SIGN IN  (assets/css/login.css)  -  login.php only
   --------------------------------------------------------------------------
   Split layout (design p.2): dark brand panel left, form right.
   < 992px the panel is hidden and the form is centred with its own logo.
     1. Layout      2. Brand panel      3. Form panel      4. Demo hint
   ========================================================================== */


/* ----------------------------------------------------------- 1. layout ---- */
.login {
  display: grid;
  grid-template-columns: minmax(420px, 42%) 1fr;
  min-height: 100vh; min-height: 100dvh;
}


/* ------------------------------------------------------ 2. brand panel ---- */
.login__panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 64px);
  background: var(--gradient-2);
  color: var(--panel-text);
}
/* soft teal glow */
.login__panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -220px;
  background: radial-gradient(closest-side, rgba(91, 140, 255, .30), transparent);
  pointer-events: none;
}
.login__panel .brand__logo { height: 30px; }
.login__pitch { position: relative; margin: auto 0; padding: var(--sp-12) 0; max-width: 520px; }
.login__headline {
  color: #fff;
  font-size: clamp(34px, 1.2rem + 2.4vw, 56px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.035em;
}
.login__lede { margin-top: var(--sp-6); font-size: 17px; line-height: 1.6; color: var(--panel-muted); }
.login__features { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
.login__features li { display: flex; align-items: center; gap: var(--sp-4); font-size: 15.5px; color: #d5dbe8; }
.login__feature-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(143, 176, 255, .10); color: var(--panel-accent);
  border: 1px solid rgba(143, 176, 255, .16);
}
.login__legal { position: relative; font-size: 13px; color: var(--panel-subtle); }
.login__legal a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login__legal a:hover { color: #fff; }


/* ------------------------------------------------------- 3. form panel ---- */
.login__main {
  display: grid; place-items: center;
  padding: var(--sp-12) var(--sp-6);
}
.login__mobile-brand { display: none; margin-bottom: var(--sp-8); }
.login__main .alert { margin-bottom: var(--sp-4); }

@media (max-width: 991.98px) {
  .login { grid-template-columns: 1fr; }
  .login__panel { display: none; }
  .login__main { align-items: start; padding: clamp(56px, 12vh, 120px) var(--sp-4) var(--sp-10); }
  .login__mobile-brand { display: inline-flex; }
}
@media (max-width: 575.98px) {
  .login__main { padding-top: 64px; }
  .login__main .btn-crm--lg { font-size: 14.5px; }
}


/* Google button: brand-neutral outline, logo keeps its own colours */
.btn-google { gap: 12px; font-weight: 600; }

.login__oauth-stack {
  display: grid;
  gap: 10px;
}
.login__oauth-stack .btn-crm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login__email-form {
  display: grid;
  gap: 14px;
}
.login__email-form .check { margin-top: 2px; }
.login__email-form .field__row .link { font-size: 13px; font-weight: 600; }

/* -------------------------------------------------------- 4. demo hint ---- */
/* DEMO ONLY - delete with the hint markup in login.php */
.demo-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: var(--sp-4); padding: 10px 12px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted); text-align: center;
}
