:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #34d399;
  --warning: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(52, 211, 153, 0.16), transparent 28%),
    linear-gradient(145deg, #07111f 0%, #111827 52%, #0f172a 100%);
  color: var(--text);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  align-content: center;
}

.hero-panel {
  min-height: 560px;
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.login-card {
  min-height: 460px;
  padding: 24px;
  display: grid;
  gap: 24px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.32);
}

.logotipo {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: var(--panel-soft);
}

.logotipo img {
  width: min(240px, 100%);
  height: auto;
}

.group {
  position: relative;
}

input {
  width: 100%;
  min-height: 54px;
  display: block;
  border: 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.72);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  padding: 18px 6px 6px;
}

input:focus {
  outline: none;
}

label {
  position: absolute;
  left: 6px;
  top: 18px;
  color: var(--warning);
  font-size: 0.9rem;
  pointer-events: none;
  transition:
    top 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
}

input:focus ~ label,
input:valid ~ label {
  top: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.bar {
  position: relative;
  display: block;
}

.bar::before,
.bar::after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  bottom: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.bar::before {
  left: 50%;
}

.bar::after {
  right: 50%;
}

input:focus ~ .bar::before,
input:focus ~ .bar::after {
  width: 50%;
}

.highlight {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.4;
}

input:focus ~ .highlight {
  animation: inputHighlighter 0.3s ease;
}

button {
  min-height: 52px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: rgba(52, 211, 153, 0.24);
  outline: none;
}

@keyframes inputHighlighter {
  from {
    background: rgba(56, 189, 248, 0.22);
  }
  to {
    width: 0;
    background: transparent;
  }
}

@media (max-width: 820px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
}
