/* FG Agenda Fácil · base visual das páginas fora do painel (identidade v2, outubro 2026)
   Fontes (Google Fonts, no <head> de cada página):
   Plus Jakarta Sans 400-800, Fraunces itálico 600, Caveat 700, JetBrains Mono 500/700.
   Tudo com prefixo fg- para conviver com o Tailwind e o loading.js. */

:root {
    --fg-coral: #f48b5b;
    --fg-coral-d: #e07545;
    --fg-navy: #121826;
    --fg-ink: #0b0f19;
    --fg-cream: #f5eee3;
    --fg-peach: #fbe3d6;
    --fg-paper: #fffbf6;
    --fg-body-light: #3b4558;
    --fg-body-dark: #cbd5e1;
    --fg-muted: #64748b;
    --fg-line: rgba(18, 24, 38, .14);
    --fg-line-dark: rgba(255, 255, 255, .12);
    --fg-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --fg-serif: 'Fraunces', Georgia, serif;
    --fg-hand: 'Caveat', cursive;
    --fg-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.fg-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--fg-sans);
    background: var(--fg-cream);
    color: var(--fg-navy);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.fg-body ::selection { background: var(--fg-coral); color: var(--fg-ink); }

/* Tipografia */
.fg-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fg-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-coral-d); }
.fg-dark .fg-kicker { color: var(--fg-coral); }
.fg-title { margin: 0; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; color: var(--fg-navy); }
.fg-title-sm { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: var(--fg-navy); }
.fg-v { font-family: var(--fg-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; color: var(--fg-coral-d); }
.fg-dark .fg-v { color: var(--fg-coral); }
.fg-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-body-light); }
.fg-dark .fg-lead { color: var(--fg-body-dark); }
.fg-hand { font-family: var(--fg-hand); font-weight: 700; font-size: 24px; line-height: 1.05; color: var(--fg-coral-d); }
.fg-dark .fg-hand { color: var(--fg-coral); }
.fg-muted { color: var(--fg-muted); }
.fg-link { color: var(--fg-coral-d); font-weight: 700; text-decoration: none; }
.fg-link:hover { text-decoration: underline; }

/* Cartão com sombra sólida */
.fg-card { background: var(--fg-paper); border: 2px solid var(--fg-navy); border-radius: 24px; box-shadow: 8px 8px 0 var(--fg-navy); }
.fg-card-soft { background: var(--fg-paper); border: 2px solid var(--fg-line); border-radius: 20px; }

/* Botões */
.fg-btn {
    display: inline-flex; box-sizing: border-box; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--fg-sans); font-weight: 800; font-size: 15px; line-height: 1.2;
    padding: 15px 22px; border-radius: 14px; border: 2px solid var(--fg-ink);
    text-decoration: none; cursor: pointer; text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.fg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.fg-btn-coral { background: var(--fg-coral); color: var(--fg-ink); box-shadow: 4px 4px 0 var(--fg-ink); }
.fg-btn-coral:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg-ink); }
.fg-btn-coral:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--fg-ink); }
.fg-btn-navy { background: var(--fg-navy); color: #fff; box-shadow: 4px 4px 0 var(--fg-coral); }
.fg-btn-navy:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg-coral); }
.fg-btn-ghost { background: transparent; color: var(--fg-navy); border-color: var(--fg-navy); }
.fg-btn-ghost:hover { background: var(--fg-navy); color: #fff; }
.fg-dark .fg-btn-coral { box-shadow: 4px 4px 0 var(--fg-cream); }
.fg-dark .fg-btn-coral:hover { box-shadow: 6px 6px 0 var(--fg-cream); }
.fg-btn-block { width: 100%; }
.fg-btn[disabled], .fg-btn.opacity-50 { opacity: .6; cursor: not-allowed; transform: none; }

/* Campos */
.fg-form { display: grid; gap: 18px; }
.fg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-field { display: grid; gap: 7px; min-width: 0; }
.fg-label { font-family: var(--fg-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-body-light); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fg-label small { font-family: var(--fg-sans); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--fg-muted); font-weight: 600; }
.fg-label a { font-family: var(--fg-sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.fg-input {
    width: 100%; box-sizing: border-box; font-family: var(--fg-sans); font-size: 15px; font-weight: 600; color: var(--fg-navy);
    background: #fff; border: 2px solid var(--fg-line); border-radius: 14px; padding: 13px 15px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.fg-input::placeholder { color: #94a3b8; font-weight: 500; }
.fg-input:focus { border-color: var(--fg-navy); box-shadow: 0 0 0 4px rgba(244, 139, 91, .25); }
textarea.fg-input { resize: vertical; min-height: 96px; line-height: 1.5; }
select.fg-input { appearance: auto; }
.fg-input-wrap { position: relative; }
.fg-input-wrap > .fg-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #94a3b8; pointer-events: none; display: flex; }
.fg-input-wrap > .fg-ico svg { width: 18px; height: 18px; }
.fg-input-wrap:focus-within > .fg-ico { color: var(--fg-coral-d); }
.fg-input-wrap .fg-input.has-ico { padding-left: 44px; }
.fg-input-wrap .fg-input.has-eye { padding-right: 46px; }
.fg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: #94a3b8; cursor: pointer; display: flex; border-radius: 10px; }
.fg-eye:hover { color: var(--fg-navy); }
.fg-eye svg { width: 18px; height: 18px; }
.fg-prefix { display: flex; align-items: stretch; background: #fff; border: 2px solid var(--fg-line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fg-prefix:focus-within { border-color: var(--fg-navy); box-shadow: 0 0 0 4px rgba(244, 139, 91, .25); }
.fg-prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--fg-peach); font-family: var(--fg-mono); font-size: 12px; font-weight: 700; color: var(--fg-body-light); white-space: nowrap; border-right: 2px solid var(--fg-line); }
.fg-prefix .fg-input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.fg-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-body-light); cursor: pointer; line-height: 1.45; }
.fg-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fg-coral-d); flex-shrink: 0; cursor: pointer; }

/* Avisos */
.fg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.45; border: 2px solid; }
.fg-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.fg-alert b { display: block; }
.fg-alert-erro { background: #fff1f0; border-color: #f3b4ab; color: #9f2a1c; }
.fg-alert-ok { background: #ecfbf1; border-color: #9fdcb5; color: #146c3a; }

/* Abas (login do cliente) */
.fg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--fg-peach); border-radius: 16px; }
.fg-tab { font-family: var(--fg-sans); font-weight: 800; font-size: 14px; padding: 11px; border-radius: 11px; border: 2px solid transparent; background: transparent; color: var(--fg-body-light); cursor: pointer; transition: background .15s, color .15s; }
.fg-tab.on { background: var(--fg-navy); color: #fff; border-color: var(--fg-ink); }

/* Layout dividido (login e cadastro do parceiro) */
.fg-auth { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; min-height: 100vh; }
.fg-auth-side { position: relative; overflow: hidden; background: var(--fg-navy); color: #fff; padding: 48px clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.fg-auth-side .fg-logo img { height: 34px; width: auto; display: block; }
.fg-auth-side h1 { margin: 18px 0 16px; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.fg-auth-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.fg-auth-list li { display: flex; gap: 14px; align-items: flex-start; }
.fg-auth-list .fg-dot { width: 36px; height: 36px; border-radius: 11px; background: var(--fg-coral); color: var(--fg-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fg-auth-list .fg-dot svg { width: 18px; height: 18px; }
.fg-auth-list b { display: block; font-size: 15px; }
.fg-auth-list span { font-size: 14px; color: var(--fg-body-dark); }
.fg-auth-foot { display: flex; justify-content: space-between; gap: 16px; font-family: var(--fg-mono); font-size: 11px; color: #64748b; }
.fg-auth-foot a { color: #94a3b8; text-decoration: none; }
.fg-auth-foot a:hover { color: #fff; }
.fg-auth-sym { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; opacity: .06; pointer-events: none; }
.fg-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.fg-auth-box { width: 100%; max-width: 460px; }
.fg-auth-box.wide { max-width: 640px; }
.fg-auth-head { margin-bottom: 28px; }
.fg-auth-head .fg-title { margin: 10px 0 10px; }
.fg-auth-alt { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--fg-line); font-size: 15px; color: var(--fg-body-light); text-align: center; }
.fg-auth-mlogo { display: none; margin-bottom: 32px; }
.fg-auth-mlogo img { height: 30px; width: auto; }

/* Página simples centralizada (senha, cliente, avisos) */
.fg-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; box-sizing: border-box; }
.fg-center > .fg-logo img { height: 34px; width: auto; display: block; }
.fg-center > .fg-logo { margin-bottom: 32px; }
.fg-center .fg-card { width: 100%; max-width: 440px; padding: 34px 30px; box-sizing: border-box; }
.fg-badge-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--fg-coral); color: var(--fg-ink); border: 2px solid var(--fg-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fg-badge-ico svg { width: 26px; height: 26px; }
.fg-badge-ico.ok { background: #bff0cf; }
.fg-back { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--fg-body-light); text-decoration: none; }
.fg-back:hover { color: var(--fg-navy); }
.fg-back svg { width: 16px; height: 16px; }

/* Topo e rodapé simples */
.fg-top { background: rgba(245, 238, 227, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--fg-line); position: sticky; top: 0; z-index: 30; }
.fg-top-in { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fg-top-in .fg-logo img { height: 32px; width: auto; display: block; }
.fg-top-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--fg-body-light); text-decoration: none; padding: 9px 14px; border-radius: 12px; border: 2px solid var(--fg-line); }
.fg-top-link:hover { border-color: var(--fg-navy); color: var(--fg-navy); }
.fg-top-link svg { width: 16px; height: 16px; }
.fg-foot { background: var(--fg-ink); color: #64748b; padding: 28px 20px; text-align: center; font-family: var(--fg-mono); font-size: 12px; }
.fg-foot img { height: 26px; width: auto; margin: 0 auto 10px; display: block; }
.fg-made { text-align: center; font-family: var(--fg-mono); font-size: 11px; color: var(--fg-muted); margin-top: 28px; }
.fg-made a { color: var(--fg-coral-d); text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
    .fg-auth { grid-template-columns: 1fr; }
    .fg-auth-side { display: none; }
    .fg-auth-mlogo { display: block; }
    .fg-auth-main { justify-content: flex-start; padding: 36px 20px 56px; }
}
@media (max-width: 560px) {
    .fg-grid-2, .fg-grid-3 { grid-template-columns: 1fr; }
    .fg-card { box-shadow: 6px 6px 0 var(--fg-navy); }
    .fg-center .fg-card { padding: 28px 22px; }
    .fg-title { font-size: 30px; }
}

/* O "hidden" do Tailwind fica numa camada e perde para as classes acima */
.fg-body .hidden { display: none !important; }
