/* ============================================================================
   NewsFlow — pages/login.css
   Extraído do <style> inline de views/login.ejs (2026-07). Carregado via <link>
   na MESMA posição onde o <style> estava -> cascata preservada, pixel-idêntico.
   ============================================================================ */

    *{ box-sizing: border-box; }
    body{
      margin: 0;
      min-height: 100vh;
      display: grid;
      place-items: center;
      background: var(--nf-bg);
      font-family: var(--nf-font);
      color: var(--nf-text);
      padding: 24px;
    }
    .login-card{
      width: 100%;
      max-width: 640px;
      background: var(--nf-topbar);
      color: var(--nf-on-primary);
      border-radius: var(--nf-radius-lg);
      box-shadow: var(--nf-shadow-lg);
      overflow: hidden;
    }
    .login-header{
      padding: 56px 36px 0;
      text-align: center;
    }
    .login-title{
      margin: 0 0 28px 0;
      font-family: var(--nf-font-head);
      font-weight: 800;
      letter-spacing: 0;
      font-size: 54px;
      line-height: 1.05;
    }
    .brand-wrap{
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
      padding: 12px 36px 44px;
    }
    .brand{
      max-width: 500px;
      max-height: 170px;
      width: auto;
      height: auto;
      background: var(--nf-surface);
      border-radius: var(--nf-radius-md);
      padding: 14px 20px;
      filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--nf-text) 25%, transparent));
    }
    .login-body{
      background: var(--nf-surface);
      color: var(--nf-text);
      padding: 40px 36px 44px;
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
      margin-top: 28px;
      min-height: 360px;
    }
    .error{
      background: var(--nf-danger-soft);
      color: var(--nf-danger-dark);
      border: 1px solid var(--nf-danger-soft);
      padding: 12px 14px;
      border-radius: 12px;
      font-size: .96rem;
      margin-bottom: 16px;
    }
    .success{
      background: var(--nf-success-soft);
      color: var(--nf-success-dark);
      border: 1px solid var(--nf-success-soft);
      padding: 12px 14px;
      border-radius: 12px;
      font-size: .96rem;
      margin-bottom: 16px;
    }
    form{
      display: grid;
      gap: 18px;
      margin-top: 6px;
    }
    .field-label{
      display: block;
      margin-bottom: -10px;
      font-size: .92rem;
      font-weight: 600;
      color: var(--nf-text-soft);
    }
    input[type="text"], input[type="email"], input[type="password"]{
      width: 100%;
      padding: 16px 18px;
      border-radius: 14px;
      border: 1px solid var(--nf-border-strong);
      background: var(--nf-surface-2);
      font-size: 1.05rem;
      outline: none;
      transition: box-shadow .15s, border-color .15s, background .15s;
    }
    input:focus{
      border-color: var(--nf-primary);
      box-shadow: 0 0 0 3px var(--nf-primary-soft);
      background: var(--nf-surface);
    }
    .captcha-panel{
      margin-top: 4px;
      border: 1px solid var(--nf-primary-soft);
      background: var(--nf-surface-2);
      border-radius: var(--nf-radius-lg);
      padding: 16px;
      display: grid;
      gap: 12px;
    }
    .captcha-inline{
      margin-top: 4px;
      display: grid;
      gap: 8px;
      justify-items: start;
    }
    .captcha-title{
      font-size: .95rem;
      font-weight: 700;
      color: var(--nf-primary-dark);
    }
    .captcha-copy{
      font-size: .88rem;
      color: var(--nf-text-muted);
      line-height: 1.45;
    }
    .captcha-meta{
      font-size: .82rem;
      color: var(--nf-text-muted);
    }
    .captcha-meta--subtle{
      opacity: .78;
      margin-top: -4px;
    }
    .captcha-image{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
      overflow: hidden;
      border-radius: 16px;
      background: var(--nf-surface);
      border: 1px solid var(--nf-primary-soft);
      padding: 10px;
    }
    .captcha-image svg{
      width: 100%;
      max-width: 220px;
      height: auto;
      display: block;
    }
    .captcha-refresh{
      color: var(--nf-primary);
      font-weight: 700;
      text-decoration: none;
      font-size: .9rem;
      width: fit-content;
    }
    .captcha-refresh:hover{
      text-decoration: underline;
    }
    .captcha-status{
      min-height: 1.1em;
      font-size: .88rem;
      color: var(--nf-text-muted);
    }
    .captcha-unavailable{
      border-color: var(--nf-danger-soft);
      background: var(--nf-danger-soft);
    }
    /* Espelha .nf-btn--primary do design system (valores fixos: esta tela e
       independente e nao carrega o CSS interno do app). */
    button[type="submit"]{
      appearance: none;
      -webkit-appearance: none;
      border: 1px solid transparent;
      border-radius: var(--nf-radius-sm);
      padding: 14px 18px;
      font-size: 1rem;
      font-weight: 700;
      background: var(--nf-primary);
      color: var(--nf-on-primary);
      cursor: pointer;
      transition: background .12s ease, box-shadow .12s ease, transform .05s ease;
    }
    button[type="submit"]:hover{
      background: var(--nf-primary-strong);
    }
    button[type="submit"]:focus-visible{
      outline: none;
      box-shadow: 0 0 0 3px var(--nf-primary-soft);
    }
    button[type="submit"]:active{
      transform: translateY(1px);
    }
    button[type="submit"]:disabled{
      cursor: not-allowed;
      filter: grayscale(.1);
      opacity: .6;
      transform: none;
    }
    .footer-note{
      text-align: center;
      margin-top: 16px;
      font-size: .95rem;
      color: var(--nf-text-soft);
    }
    .footer-note strong{
      color: var(--nf-primary);
    }
    .auth-link{
      color: var(--nf-primary);
      font-weight: 700;
      text-decoration: none;
    }
    .auth-link:hover{
      text-decoration: underline;
    }
    .auth-copy{
      margin: 0;
      color: var(--nf-text-soft);
      line-height: 1.55;
      font-size: .95rem;
    }
    .auth-actions{
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }
    @media (max-width: 720px){
      .login-header{
        padding: 42px 22px 0;
      }
      .brand-wrap{
        min-height: 160px;
        padding: 10px 22px 30px;
      }
      .login-body{
        padding: 28px 22px 34px;
      }
      .login-title{
        font-size: 44px;
      }
    }
