/* =========================================================
   Nomilinea — Registro Demo
   ========================================================= */

:root {
  --teal-900: #06322f;
  --teal-800: #0a3f3b;
  --teal-700: #0d5450;
  --teal-600: #106a63;
  --teal-500: #158f84;
  --teal-400: #22b3a3;
  --teal-100: #e3f6f3;

  --orange-600: #d9670c;
  --orange-500: #f0821f;
  --orange-400: #f5993f;
  --orange-100: #fef1e3;

  --ink-900: #1a2523;
  --ink-700: #3c4a48;
  --ink-500: #6b7a78;
  --ink-300: #9fb0ad;

  --gray-100: #f7f8f8;
  --gray-200: #eceeee;
  --gray-300: #dde1e0;

  --red-600: #d92d3d;
  --red-100: #fdeced;
  --green-600: #1f9d55;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(6, 50, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 50, 47, 0.10);
  --shadow-lg: 0 20px 48px rgba(6, 50, 47, 0.16);

  --font-heading: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* =========================== Header =========================== */

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 34px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn--login {
  background: var(--orange-500);
  color: #fff;
  padding: 12px 26px;
  font-size: 15px;
}

.btn--login:hover { background: var(--orange-600); transform: translateY(-1px); }

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

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}

/* =========================== Info panel =========================== */

.info-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 56px 44px;
  color: #fff;
  display: flex;
  align-items: flex-start;
}

.info-panel__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 700px at 15% -10%, rgba(34, 179, 163, 0.35), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(6, 30, 28, 0.6), transparent 55%),
    linear-gradient(160deg, var(--teal-600) 0%, var(--teal-800) 55%, var(--teal-900) 100%);
  z-index: 0;
}

.info-panel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
}

.info-panel__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

/* ---- Laptop ---- */
.laptop {
  position: relative;
  width: 112%;
  max-width: none;
  margin: 0 -6% 26px;
  padding: 0;
  will-change: transform;
}

.laptop__glow {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(34, 179, 163, 0.55), rgba(240, 130, 31, 0.18) 45%, transparent 72%);
  filter: blur(34px);
  z-index: 0;
}

.laptop__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.38));
}

.info-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 16px;
}

.info-panel__title .hl { color: var(--orange-400); }

.info-panel__subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 26px;
  max-width: 500px;
}

.btn--info {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 12px 24px;
  font-size: 15px;
  margin-bottom: 34px;
  backdrop-filter: blur(6px);
}

.btn--info svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn--info:hover { background: var(--orange-500); border-color: var(--orange-500); transform: translateY(-1px); }
.btn--info:hover svg { transform: translateX(3px); }

.stats {
  list-style: none;
  margin: 0 0 30px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stats__item { display: flex; flex-direction: column; gap: 4px; }

.stats__number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stats__label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}

/* ---- Feature bullets: single row ---- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  flex: 1 1 0;
}

.features__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(240, 130, 31, 0.2);
  color: var(--orange-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__icon svg { width: 13px; height: 13px; }

/* =========================== Form panel =========================== */

.form-panel {
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 40px 64px;
}

.form-panel__inner {
  width: 100%;
  max-width: 520px;
}

.form-header { margin-bottom: 28px; }

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink-900);
}

.form-header h2 strong { font-weight: 700; }

.brand-inline { font-weight: 700; color: var(--teal-600); }

.form-header__sub { margin: 0; color: var(--ink-500); font-size: 14.5px; }

form { display: flex; flex-direction: column; gap: 18px; }
form[hidden] { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a78' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field input::placeholder { color: var(--ink-300); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(21, 143, 132, 0.15);
}

.field.has-error input,
.field.has-error select { border-color: var(--red-600); background-color: var(--red-100); }

.field.is-valid input { border-color: var(--green-600); }

.field__error { display: none; font-size: 12.5px; color: var(--red-600); font-weight: 500; }

.field.has-error .field__error { display: block; }

.password-wrap { position: relative; display: flex; }
.password-wrap input { padding-right: 44px; }

.toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-500);
  border-radius: 50%;
}

.toggle-pass:hover { background: var(--gray-200); color: var(--ink-900); }
.toggle-pass svg { width: 19px; height: 19px; }

.pass-rules {
  list-style: none;
  margin: -6px 0 0;
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.pass-rules li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
  transition: color .15s ease;
}

.pass-rules__dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-600);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}

.pass-rules li.valid { color: var(--green-600); }
.pass-rules li.valid .pass-rules__dot { background: var(--green-600); }

.legal { display: flex; flex-direction: column; gap: 12px; }

.legal__note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

.legal__note a { color: var(--teal-600); font-weight: 600; text-decoration: underline; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-700);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-field input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--teal-600);
  flex: none;
}

.checkbox-field a { color: var(--teal-600); font-weight: 600; text-decoration: underline; }

.btn--submit {
  margin-top: 6px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--orange-500);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn--submit:hover { background: var(--orange-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--submit:disabled { background: var(--gray-300); color: var(--ink-500); cursor: not-allowed; box-shadow: none; transform: none; }

.form-footer { text-align: center; font-size: 13.5px; color: var(--ink-500); margin: 4px 0 0; }
.form-footer a { color: var(--teal-600); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* =========================== Success message =========================== */

.success-message { text-align: center; padding: 48px 20px; animation: fadeUp .5s ease both; }
.success-message svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--green-600); }
.success-message h3 { font-family: var(--font-heading); font-size: 22px; margin: 0 0 10px; color: var(--ink-900); }
.success-message p { margin: 0 auto; color: var(--ink-500); font-size: 15px; max-width: 380px; line-height: 1.6; }

/* =========================== Footer =========================== */

.site-footer {
  background: #ffffff;
  color: var(--ink-700);
  border-top: 1px solid var(--gray-300);
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.site-footer__logo {
  height: 32px;
  width: auto;
}

.site-footer__tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer__links a {
  color: var(--ink-700);
  transition: color .15s ease;
}

.site-footer__links a:hover { color: var(--orange-500); }

.site-footer__bottom {
  border-top: 1px solid var(--gray-200);
}

.site-footer__bottom p {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* =========================== Animations =========================== */

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}

.laptop.is-visible { animation: laptopFloat 6s ease-in-out 1s infinite; }

@keyframes laptopFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.field-anim { opacity: 0; transform: translateY(14px); }
.field-anim.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .field-anim { opacity: 1 !important; transform: none !important; }
  .laptop.is-visible { animation: none; }
  .laptop__img { will-change: auto; }
}

/* =========================== Responsive =========================== */

@media (max-width: 1080px) {
  .info-panel { padding: 48px 40px; }
  .form-panel { padding: 48px 32px 56px; }
  .features { gap: 16px; }
  .features__item { font-size: 12.5px; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .info-panel { padding: 44px 28px; }

  /* Center everything in the left panel when stacked */
  .info-panel__content { max-width: 640px; text-align: center; }
  .laptop { width: 100%; max-width: 600px; margin: 0 auto 26px; }
  .info-panel__subtitle { margin-left: auto; margin-right: auto; }
  .stats { justify-items: center; text-align: center; }
  .stats__item { align-items: center; }
  .features { justify-content: center; }

  /* Center footer content when stacked */
  .site-footer__inner { flex-direction: column; justify-content: center; text-align: center; }
  .site-footer__brand { align-items: center; }
  .site-footer__links { justify-content: center; }
  .site-footer__bottom p { text-align: center; }
}

@media (max-width: 620px) {
  .site-header__inner { padding: 0 18px; }
  .logo__img { height: 28px; }
  .btn--login { padding: 10px 18px; font-size: 13.5px; }

  .info-panel { padding: 34px 20px; }
  .info-panel__title { font-size: 26px; }
  .info-panel__subtitle { font-size: 15px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__number { font-size: 21px; }

  .features { flex-direction: column; align-items: center; gap: 12px; }
  .features__item { flex: none; font-size: 14px; }

  .form-panel { padding: 34px 18px 48px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .pass-rules { grid-template-columns: 1fr; }
  .form-header h2 { font-size: 22px; }
}
