@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  --brand-500: #fd510d;
  --brand-600: #e2390a;
  --brand-700: #b62709;
  --ink-50:  #faf3eb;
  --ink-100: #f3e3d4;
  --ink-700: #3d2a20;
  --ink-800: #2a1a13;
  --ink-900: #1a0f0a;
  --surface: #ffffff;
  --border:  #ecdfd2;
  --border-strong: #d9c4ad;
  --danger:  #b3261e;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-card: 0 32px 72px rgba(26, 10, 4, 0.30), 0 8px 24px rgba(26, 10, 4, 0.14);
  --shadow-brand: 0 12px 30px rgba(253, 81, 13, 0.40);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%,    #ff8a3a 0%, transparent 55%),
    radial-gradient(100% 90% at 100% 100%, #8a1505 0%, transparent 60%),
    linear-gradient(135deg, #fd510d 0%, #c9261a 60%, #7a1305 100%);
}

/* dot grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* decorative oversized "C" in the background */
body::after {
  content: "C";
  position: fixed;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 56vh;
  color: rgba(255,255,255,0.06);
  bottom: -8vh;
  right: -2vw;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Centered column ── */
.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 48px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Logos row ── */
.logos-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nova-pill {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
}

.nova-pill img {
  height: 72px;
  width: auto;
  display: block;
}

.logo-sep {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.copa-logo {
  height: 110px;
  width: auto;
  border-radius: 16px;
  clip-path: inset(4px round 13px);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.28));
}

/* ── Form card ── */
.form-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-card);
}

.form-card .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

.form-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink-900);
}

.form-card .lede {
  font-size: 14px;
  color: var(--ink-700);
  margin: 0 0 28px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(253, 81, 13, 0.18);
}

.submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  background: var(--brand-500);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background .15s ease, transform .06s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit:hover  { background: var(--brand-600); }
.submit:active { transform: translateY(1px); }
.submit[disabled] { opacity: 0.7; cursor: progress; }

.submit .spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

#mensaje {
  margin: 14px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--danger);
  text-align: left;
}

.form-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .login-wrap  { padding: 32px 16px 40px; gap: 22px; }
  .form-card   { padding: 28px 22px 24px; }
  .nova-pill img { height: 40px; }
  .copa-logo     { height: 66px; }
}
