/* Qlix QSR - styles shared by the auth pages (sign in, reset password). */
  /* ---------- Design tokens - copied verbatim from dashboard.html so
     both pages stay in sync if the palette changes. ---------- */
  :root {
    --bg-page: #ececec;
    --bg-app: #ffffff;
    --bg-panel: #ffffff;
    --bg-soft: #f7f7f8;
    --border: #ececec;
    --border-strong: #e2e2e4;
    --text-1: #1a1a1a;
    --text-2: #6b6b70;
    --text-3: #9a9aa0;
    --accent: #2f447a;
    --accent-soft: #e6e9ef;
    --green: #2fa35a;
    --green-soft: #e3f4e9;
    --blue: #2f7bd9;
    --blue-soft: #e3edfa;
    --red: #e04a4a;
    --red-soft: #fde5e5;
    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.04);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    color: var(--text-1);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
  }
  /* ---------- Brand ---------- */
  .brand-name {
    font-family: 'Saira', sans-serif;
    font-style: italic;
    font-size: 30px;
    font-weight: 200;
    color: #2f447a;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  /* ---------- Login layout ---------- */
  .login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }
  .login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 28px 28px;
    box-shadow: 0 12px 40px rgba(16, 16, 20, 0.07);
  }
  .login-brand {
    text-align: center;
    margin-bottom: 28px;
  }
  .login-subtitle {
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 6px;
  }
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
  }
  .field-input-wrap {
    position: relative;
  }
  .field input {
    width: 100%;
    background: var(--bg-app);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-1);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .field input::placeholder { color: var(--text-3); }
  .field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .field input.field-error {
    border-color: var(--red);
  }
  .field input.field-error:focus {
    box-shadow: 0 0 0 3px var(--red-soft);
  }
  .field-input-wrap.has-toggle input { padding-right: 38px; }
  .pw-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .pw-toggle:hover { background: var(--bg-soft); color: var(--text-2); }
  .field-hint {
    font-size: 11px;
    color: var(--text-3);
  }
  .login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
  }
  /* Real (hidden) checkbox so the remember choice actually posts with
     the form - the styled .box remains the visible UI. */
  .remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
  }
  .remember .box {
    width: 15px; height: 15px;
    border: 1.5px solid var(--border-strong);
    border-radius: 3px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .remember .box svg { opacity: 0; color: #fff; }
  .remember.checked .box {
    background: var(--accent);
    border-color: var(--accent);
  }
  .remember.checked .box svg { opacity: 1; }
  .form-error {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid #f5c9c9;
    border-radius: var(--radius-sm);
    padding: 9px 10px;
  }
  .form-error.show { display: flex; }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 16px rgba(47,68,122,0.25);
    transition: filter 0.15s ease, opacity 0.15s ease;
  }
  .btn-primary:hover { filter: brightness(1.06); }
  .btn-primary:disabled { opacity: 0.7; cursor: default; filter: none; }
  .btn-spinner {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    display: none;
    animation: spin 0.7s linear infinite;
  }
  .btn-primary.loading .btn-spinner { display: inline-block; }
  @keyframes spin { to { transform: rotate(360deg); } }
  /* ---------- Page footer - matches the dashboard's vertical-menu
     footer treatment (plain muted line with an animated heart). ---------- */
  .app-footer-text {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    padding: 16px 0 20px;
  }
  .heart {
    display: inline-block;
    color: inherit;
    cursor: default;
    transition: color 0.2s ease;
  }
  .heart:hover {
    color: var(--red);
    animation: heartbeat 0.7s ease-in-out infinite;
  }
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.35); }
    40% { transform: scale(1); }
    60% { transform: scale(1.2); }
  }
