:root {
  --ink: #121212;
  --navy: #0d1b2a;
  --navy-deep: #060d14;
  --twilio-blue: #006dff;
  --azul: #006c9c;
  --verde: #00ac4f;
  --bg: #f4f4f8;
  --line: rgba(18, 18, 18, 0.12);
  --muted: #5c6470;
  --white: #fff;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.nc-auth {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.nc-auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .nc-auth-shell {
    grid-template-columns: 1fr;
  }
}

/* —— Left column —— */
.nc-auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem 2.5rem;
  color: #fff;
}

.nc-auth-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nc-auth-visual-bg--signup {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(0, 109, 255, 0.18), transparent 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #0a2540 100%);
}

.nc-auth-visual-bg--login {
  background: linear-gradient(160deg, #0a1628 0%, #1a2d4a 45%, #243b55 100%);
}

/* Login · foto lifestyle a pantalla completa en el panel izquierdo */
.nc-auth--photo .nc-auth-visual {
  padding: 0;
  min-height: 100%;
  justify-content: flex-end;
}

.nc-auth-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nc-auth-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 35%;
  display: block;
  transform: scale(1.02);
}

.nc-auth-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.72) 0%, rgba(8, 18, 32, 0.15) 42%, rgba(8, 18, 32, 0.55) 100%),
    linear-gradient(90deg, rgba(8, 18, 32, 0.35) 0%, transparent 55%);
}

.nc-auth-photo-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 2rem 2.25rem 2.5rem;
  max-width: 28rem;
}

.nc-auth-hero-tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nc-auth--photo .nc-auth-visual-brand--on-photo {
  margin-bottom: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.nc-auth-visual-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.nc-auth-visual-brand--on-photo {
  margin-bottom: 1rem;
}

.nc-auth-logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Register left copy (Twilio-like) */
.nc-auth-signup-copy {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  margin-top: 0.5rem;
}

.nc-auth-signup-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nc-auth-signup-subhead {
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

.nc-auth-signup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nc-auth-signup-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.nc-auth-signup-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ac4f' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Login hero photo */
.nc-auth-hero-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.nc-auth-hero {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.nc-auth-hero.nc-auth-hero--logo {
  width: min(100%, 200px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.25));
}

.nc-auth-hero-caption {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 960px) {
  .nc-auth-visual {
    min-height: auto;
    padding: 1.5rem 1.25rem 2rem;
  }

  .nc-auth--login .nc-auth-visual,
  .nc-auth--photo .nc-auth-visual {
    min-height: 260px;
  }

  .nc-auth-photo-content {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .nc-auth-hero-tagline {
    font-size: 1rem;
  }

  .nc-auth-hero {
    max-width: 280px;
  }

  .nc-auth-signup-copy {
    max-width: none;
  }

  .nc-auth-hero-caption,
  .nc-auth-signup-list--steps {
    display: none;
  }
}

/* —— Right panel —— */
.nc-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.nc-auth-card {
  width: min(100%, 440px);
  padding: 2rem 2.25rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(13, 27, 42, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
  .nc-auth-card {
    padding: 1.5rem 1.25rem;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .nc-auth-panel {
    padding: 1rem;
  }
}

.nc-auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.nc-auth-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nc-auth-plan {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 172, 79, 0.08);
  border: 1px solid rgba(0, 172, 79, 0.22);
  font-size: 0.85rem;
}

.nc-auth-plan strong {
  color: var(--verde);
}

.nc-auth-error {
  display: none;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.88rem;
}

.nc-auth-error.show {
  display: block;
}

.nc-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .nc-auth-row {
    grid-template-columns: 1fr;
  }
}

.nc-auth-field {
  display: block;
  margin-bottom: 0.85rem;
}

.nc-auth-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.nc-auth-field span em {
  font-style: normal;
  color: #c0392b;
}

.nc-auth-field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid #c5c9d2;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.nc-auth-field input:focus {
  outline: none;
  border-color: var(--twilio-blue);
  box-shadow: 0 0 0 3px rgba(0, 109, 255, 0.15);
}

.nc-auth-field--password {
  position: relative;
}

.nc-auth-field--password input {
  padding-right: 2.75rem;
}

.nc-auth-pw-toggle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  border: none;
  background: transparent;
  padding: 0.35rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
}

.nc-auth-pw-toggle:hover {
  color: var(--ink);
}

.nc-auth-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.25rem 0 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.nc-auth-check--legal {
  font-size: 0.75rem;
}

.nc-auth-check a {
  color: var(--twilio-blue);
}

.nc-auth-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--twilio-blue);
}

.nc-auth-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.nc-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.nc-auth-submit.success {
  background: var(--verde);
}

.nc-auth-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.nc-auth-switch a {
  color: var(--twilio-blue);
  font-weight: 600;
  text-decoration: none;
}

.nc-auth-switch a:hover {
  text-decoration: underline;
}

.nc-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nc-auth-divider::before,
.nc-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.nc-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #c5c9d2;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.nc-auth-google:hover {
  border-color: var(--twilio-blue);
  background: #fafbff;
}

.nc-auth-trust {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.nc-auth-demo {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.nc-auth-demo-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.nc-auth-demo-btns button {
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
