/* ================================================
   AUREAPORTAL — Global · Brand Áurea
   Fonts: Syne · DM Sans · DM Mono
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #090909;
  --card:       #141414;
  --card-hover: #1c1c1c;
  --bg-4:       #222222;

  --gold:       #C9A84C;
  --gold-lt:    #E2C47A;
  --gold-dim:   rgba(201,168,76,.10);
  --gold-bdr:   rgba(201,168,76,.22);

  --text:       #F2F2F2;
  --text-sub:   rgba(242,242,242,.55);
  --text-dim:   rgba(242,242,242,.28);

  --border:     rgba(255,255,255,.07);
  --border-md:  rgba(255,255,255,.12);

  --green:      #5DD62C;
  --green-dim:  rgba(93,214,44,.10);
  --green-bdr:  rgba(93,214,44,.22);

  --blue:       #70AFFF;
  --blue-dim:   rgba(112,175,255,.09);
  --blue-bdr:   rgba(112,175,255,.22);

  --red:        #F25F5C;
  --red-dim:    rgba(242,95,92,.10);
  --red-bdr:    rgba(242,95,92,.28);

  --radius:     10px;
  --radius-sm:  6px;
  --mono:       'DM Mono', monospace;
  --sans:       'DM Sans', sans-serif;
  --syne:       'Syne', sans-serif;
}

html { font-size: 14px; -webkit-font-smoothing: antialiased; color-scheme: dark; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--gold-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- LOGIN ---- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.orb-1 { width: 500px; height: 500px; background: var(--gold); top: -180px; right: -120px; }
.orb-2 { width: 350px; height: 350px; background: #5B3A8A; bottom: -120px; left: -80px; }

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.login-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.login-title {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.login-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 1.75rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.35rem; }

.field-group label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.field-group input {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .15s;
}

.field-group input:focus { border-color: var(--gold); }
.field-group input::placeholder { color: var(--text-dim); }

.error-msg {
  background: var(--red-dim);
  border: 1px solid var(--red-bdr);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  font-size: 0.78rem;
  color: var(--red);
  font-family: var(--mono);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: #090909;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  font-family: var(--syne);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: opacity .15s, transform .15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-loader {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #090909;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text-dim);
}

/* ---- UTILS ---- */

.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }

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

.fade-up { animation: fadeUp .3s ease forwards; }
