/* ===========================================
   MATI FINANCE — ACCESO
   Estética 2025 · Blanco + Violeta sutil
   Glass · Gradient · Soft Shadows
   =========================================== */

:root {
  --bg: #f5f5fb;
  --bg-card: #ffffff;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-soft-strong: rgba(139, 92, 246, 0.32);
  --text-main: #111827;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.08);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  /* Fondo general con dos manchas violetas suaves */
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.20), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18), transparent 55%),
    var(--bg);

  color: var(--text-main);
  min-height: 100vh;
}

/* ==============================
   Layout general
   ============================== */

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

/* ==============================
   HERO
   ============================== */

.hero {
  text-align: left;
  margin-bottom: 1.8rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}

.hero h1 {
  margin: 0.85rem 0 0.45rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.hero h1 span {
  margin-left: 0.35rem;
  background: linear-gradient(135deg, var(--accent-soft-strong), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  max-width: 540px;
  color: var(--text-soft);
  font-size: 1rem;
}

/* ==============================
   CARD (Acceso)
   ============================== */

.card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(249, 250, 251, 0.92)
  );
  border-radius: var(--radius-xl);
  padding: 2rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);

  max-width: 520px;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.card .subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ==============================
   FORM
   ============================== */

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

/* Etiquetas */
label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: block;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* ==============================
   INPUTS Modernos
   ============================== */

.form input[type="text"],
.form input[type="password"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

/* Hover */
.form input:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(139, 92, 246, 0.45);
}

/* Focus hero */
.form input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.28),
    0 4px 18px rgba(139, 92, 246, 0.25);
  outline: none;
}

.form input::placeholder {
  color: rgba(107, 114, 128, 0.55);
  font-size: 0.88rem;
}

/* ==============================
   BOTONES
   ============================== */

.btn-primary,
.btn-ghost {
  margin-top: 0.35rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

/* Botón principal */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft-strong), var(--accent));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(76, 81, 191, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(76, 81, 191, 0.35);
}

/* Botón ghost */
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* ==============================
   TEXTO FINAL
   ============================== */

.mini-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ==============================
   FOOTER
   ============================== */

.footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (min-width: 768px) {
  .layout {
    align-items: center;
  }

  .hero {
    align-self: flex-start;
  }

  .card {
    padding: 2.2rem 2rem;
  }
}

@media (max-width: 430px) {
  .card {
    padding: 1.7rem 1.4rem;
  }

  .form input {
    padding: 0.75rem 0.85rem;
  }
}
