/* ─────────────────────────────────────────────────────────────
   A PORTA: Entrada, Acesso encerrado, carregamento e erro
   Layout da Entrada aprovado na reuniao de 06/11/2026.
   ───────────────────────────────────────────────────────────── */

    /* O display:flex do .bottom-nav venceria o [hidden] do navegador, e o menu
       inferior apareceria na Entrada, levando a telas do guia. */
    .bottom-nav[hidden] { display: none; }

    /* ─── ENTRADA ─── */
    .login { padding-bottom: 28px; }
    .login-hero { position: relative; height: 230px; overflow: hidden; border-radius: 0 0 28px 28px; }
    .login-logo { position: absolute; top: 18px; right: 20px; width: 74px; z-index: 1; }
    .login-hello { position: absolute; left: 22px; bottom: 26px; z-index: 1; }
    .login-card {
      margin: -26px 16px 0; position: relative; z-index: 2; padding: 22px 18px 18px;
      background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    }
    .login-card h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px; color: var(--teal); }
    .login-card > p { font-size: 12.5px; color: var(--text-2); margin: 3px 0 16px; }
    /* Terracota, e nao coral: o coral e a cor do erro logo abaixo. */
    .login-hint { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--terracotta); }
    .login-field {
      display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
      color: var(--text-2); margin-bottom: 12px;
    }
    .login-field input {
      display: block; width: 100%; margin-top: 5px; padding: 12px 13px; font: 500 14px 'Montserrat', sans-serif;
      color: var(--text); background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm);
    }
    .login-field input:focus { border-color: var(--teal); background: #fff; }
    .login-error { min-height: 16px; font-size: 12px; font-weight: 600; color: var(--coral); margin: -4px 0 8px; }
    .login-btn { width: 100%; justify-content: center; }
    .login-btn:disabled { opacity: 0.6; cursor: wait; }
    /* Botoes com cara de link: trocam de tela sem mexer no fragmento da URL,
       que e por onde chega o token do link de e-mail. */
    .login-link, .login-link-inline { background: none; border: 0; padding: 0; cursor: pointer; }
    .login-link {
      display: block; width: fit-content; margin: 12px auto 0;
      font: 600 12px 'Montserrat', sans-serif; color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
    }
    .login-link[hidden] { display: none; }
    .login-foot { font-size: 11.5px; line-height: 1.5; color: var(--text-2); text-align: center; margin: 16px 28px 0; }
    .login-link-inline { font: inherit; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
    /* Login com Google: so com a API dizendo que esta ligado. O display:flex
       venceria o [hidden] do navegador. */
    .login-google { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
    .login-google[hidden] { display: none; }
    .login-or { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2); }
    .login-google-btn {
      display: flex; justify-content: center; width: 100%; padding: 11px 20px; border-radius: 50px;
      border: 1px solid var(--border); background: var(--white); color: var(--teal);
      font: 600 11px 'Montserrat', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none;
    }
    .login-google-btn:active { transform: scale(0.96); }
    .login-buy { margin: 22px 35px 28px; text-align: center; }
    .login-buy p { font-size: 11.5px; color: var(--text-2); margin: 0 0 8px; }
    .login-buy-btn {
      display: flex; justify-content: center; width: 100%; padding: 11px 20px; border-radius: 50px;
      border: 1.5px solid var(--coral); background: transparent; color: var(--coral); cursor: pointer;
      font: 600 11px 'Montserrat', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
    }
    .login-buy-btn:active { transform: scale(0.96); }
    .login-sent { font-size: 12.5px; line-height: 1.5; color: var(--teal); margin: 0 0 10px; }
    .login-sent:empty { display: none; }

    /* ─── CARREGAMENTO, ACESSO ENCERRADO E ERRO ─── */
    .gate-status {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; --gutter: 28px; padding-top: 32px; padding-bottom: 32px;
    }
    .gate-status-mark { width: 56px; margin-bottom: 18px; }
    .gate-status h1 {
      font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 24px;
      color: var(--teal); margin-bottom: 10px;
    }
    .gate-status p { font-size: 13px; line-height: 1.55; color: var(--text-2); margin-bottom: 10px; max-width: 300px; }
    .gate-status-loading { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
    .gate-status-btn { margin-top: 14px; }

    .menu-logout { color: var(--text-2); }

    /* ─── PLANEJAR MINHA VIAGEM: o formulario com a largura dos da porta ─── */
    /* No topo, e nao centrado como as da porta: com o cabecalho do app, o
       formulario passa da altura da tela, e o centro de um flex que transborda
       corta o comeco, que nem a rolagem alcanca (visto no navegador, ticket 16). */
    .gate-status.new-trip { justify-content: flex-start; }
    .new-trip-form { width: 100%; max-width: 320px; margin-top: 8px; text-align: left; }
