/* Portal Vexa — estilos base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --surface: #ffffff;
  --bg: #f5f3ff;
  --text: #1e1b4b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --error: #dc2626;
  --success: #16a34a;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(109,40,217,0.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

.logo {
  text-align: center;
  margin-bottom: 28px;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

h1 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p.desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--primary); }

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.msg {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  line-height: 1.5;
}
.msg.error   { background: #fef2f2; color: var(--error);   border: 1px solid #fecaca; }
.msg.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.msg.info    { background: #eff6ff; color: #1d4ed8;        border: 1px solid #bfdbfe; }
.msg.warn    { background: #fffbeb; color: var(--warn);    border: 1px solid #fde68a; }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Area autenticada */
.portal-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-header .brand { font-size: 18px; font-weight: 800; }
.portal-header .logout {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.portal-body {
  padding: 32px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.portal-body { display: block; }
body.portal-page { display: block; background: var(--bg); }

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.info-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); }
.info-value { font-weight: 600; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
}
