/* Identidade visual KSI Pay — mesmos tokens do liveness-web-qitech (style.css). */
:root {
  --accent:        #45b535;
  --accent-dark:   #389e28;
  --accent-light:  #edf7eb;
  --accent-glow:   rgba(69, 181, 53, .16);
  --navy:          #0c1f35;
  --dark:          #0f172a;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --bg:            #f1f5f9;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --danger:        #dc2626;
  --danger-bg:     #fef2f2;
  --danger-border: #fca5a5;
  --info:          #1d4ed8;
  --info-bg:       #eff6ff;
  --info-border:   #bfdbfe;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --shadow-card:   0 2px 4px rgba(0, 0, 0, .04), 0 12px 36px rgba(15, 23, 42, .10);
  --shadow-btn:    0 4px 16px rgba(69, 181, 53, .30);
  --font-head:     'Barlow Semi Condensed', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ── Header ── */
.page-header {
  width: 100%;
  background: var(--navy);
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* grade de pontos */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* linha verde no topo */
.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-header .logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.page-header .subtitle {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .45);
  margin-top: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ── Card ── */
.page-body {
  width: 100%;
  max-width: 440px;
  padding: 0 16px 48px;
  margin-top: -22px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  animation: cardIn .45s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--dark);
  margin: 0 0 16px;
}

p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* ── Formulário ── */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text);
  margin: 0 0 6px;
}

input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -10px 0 16px;
}

button, .button {
  display: block;
  width: 100%;
  padding: 13px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: filter .15s, transform .1s;
}

button:hover, .button:hover { filter: brightness(1.05); }
button:active, .button:active { transform: translateY(1px); }

/* ── Mensagens ── */
.alert {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
}

.alert.error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.alert.info  { background: var(--info-bg);   color: var(--info);   border-color: var(--info-border); }

.links {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.links a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.links a:hover { text-decoration: underline; }
