/* RuniverseHub UI V2 · F4A/F4B/F4C Auth · fuente Lovable AuthShell + VerifyStep */

.rh-v2-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(100vh, auto);
  margin: 0;
  overflow-x: hidden;
  color: var(--rh-v2-color-foreground);
  background: var(--rh-v2-color-surface);
  font-family: var(--rh-v2-font-sans);
}

.rh-v2-auth-page .rh-auth-bg,
.rh-v2-auth-page > .rh-public-nav,
.rh-v2-auth-page > .rh-v2-public-header,
.rh-v2-auth-page > .rh-auth-footer {
  display: none;
}

.rh-v2-auth-visual {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--rh-v2-color-background);
}

.rh-v2-auth-visual__image,
.rh-v2-auth-visual__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rh-v2-auth-visual__image {
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.04);
}

.rh-v2-auth-visual__shade {
  background:
    radial-gradient(42rem 24rem at 20% 18%, color-mix(in oklab, var(--rh-v2-color-primary) 30%, transparent), transparent 62%),
    linear-gradient(140deg, rgba(8, 12, 20, .74) 0%, rgba(8, 12, 20, .54) 44%, rgba(8, 12, 20, .88) 100%);
}

.rh-v2-auth-visual__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--rh-v2-space-10);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.rh-v2-auth-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-family: var(--rh-v2-font-display);
  font-weight: var(--rh-v2-weight-semibold);
}

.rh-v2-auth-brand > span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--rh-v2-radius-md);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-auth-story {
  max-width: 30rem;
  animation: rh-v2-fade-up var(--rh-v2-motion-slow) var(--rh-v2-ease-enter) both;
}

.rh-v2-auth-story__eyebrow {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-medium);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rh-v2-auth-story h2 {
  margin: .55rem 0 0;
  color: #fff;
  font-family: var(--rh-v2-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--rh-v2-weight-semibold);
  line-height: var(--rh-v2-leading-tight);
  letter-spacing: -.035em;
}

.rh-v2-auth-story > p {
  margin: .8rem 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: var(--rh-v2-text-base);
  line-height: var(--rh-v2-leading-relaxed);
}

.rh-v2-auth-story ul {
  display: grid;
  gap: .65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.rh-v2-auth-story li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .86);
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-auth-story__icon {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--rh-v2-radius-md);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.rh-v2-auth-story__icon svg {
  width: .9rem;
  height: .9rem;
}

.rh-v2-auth-visual__inner > small {
  color: rgba(255, 255, 255, .5);
  font-size: var(--rh-v2-text-xs-alt);
}

.rh-v2-auth-page .rh-auth-main {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(34rem 18rem at 82% -8%, color-mix(in oklab, var(--rh-v2-color-primary) 12%, transparent), transparent 60%),
    var(--rh-v2-color-surface);
}

.rh-v2-auth-page .rh-auth-shell {
  width: min(100%, 34rem);
  margin: 0 auto;
  animation: rh-v2-fade-up var(--rh-v2-motion-slow) var(--rh-v2-ease-enter) both;
}

.rh-v2-auth-page--register .rh-auth-shell {
  width: min(100%, 42rem);
}

.rh-v2-auth-page .rh-auth-heading {
  margin: 0 0 1.6rem;
  text-align: left;
}

.rh-v2-auth-page .rh-auth-mark {
  display: none;
}

.rh-v2-auth-page .rh-auth-heading h1 {
  margin: 0;
  color: var(--rh-v2-color-foreground);
  font-family: var(--rh-v2-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--rh-v2-weight-semibold);
  line-height: var(--rh-v2-leading-tight);
  letter-spacing: -.035em;
}

.rh-v2-auth-page .rh-auth-heading p {
  margin: .55rem 0 0;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  line-height: var(--rh-v2-leading-normal);
}

.rh-v2-auth-page .rh-auth-card {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rh-v2-auth-page .rh-auth-card::before {
  display: none;
}

.rh-v2-auth-page .rh-auth-form {
  display: grid;
  gap: 1rem;
}

.rh-v2-auth-page .rh-auth-label {
  margin: 0 0 .35rem;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-regular);
}

.rh-v2-auth-page .rh-auth-input {
  min-height: 2.75rem;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-md);
  background: transparent;
  color: var(--rh-v2-color-foreground);
  padding: .7rem 2.75rem .7rem 2.25rem;
  font-family: var(--rh-v2-font-sans);
  font-size: var(--rh-v2-text-sm);
  box-shadow: none;
  transform: none;
}

.rh-v2-auth-page .rh-auth-input:focus {
  border-color: var(--rh-v2-color-primary);
  background: transparent;
  box-shadow: var(--rh-v2-shadow-focus);
  transform: none;
}

.rh-v2-auth-page .rh-auth-input::placeholder {
  color: color-mix(in oklab, var(--rh-v2-color-muted-foreground) 72%, transparent);
}

.rh-v2-auth-page .rh-auth-icon {
  left: .75rem;
  width: 1rem;
  height: 1rem;
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-auth-page .rh-auth-icon svg,
.rh-v2-auth-page .rh-password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.rh-v2-auth-page .rh-password-toggle {
  right: .35rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--rh-v2-radius-md);
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-auth-page .rh-password-toggle:hover {
  color: var(--rh-v2-color-foreground);
  background: var(--rh-v2-color-surface-2);
}

.rh-v2-auth-page .rh-auth-btn {
  min-height: 2.75rem;
  border-radius: var(--rh-v2-radius-md);
  color: var(--rh-v2-color-primary-foreground);
  background: var(--rh-v2-color-primary);
  font-size: var(--rh-v2-text-sm);
  font-weight: var(--rh-v2-weight-semibold);
  box-shadow: none;
}

.rh-v2-auth-page .rh-auth-btn:hover {
  transform: none;
  filter: brightness(1.04);
  box-shadow: none;
}

.rh-v2-auth-page .rh-auth-btn svg {
  width: 1rem;
  height: 1rem;
}

.rh-v2-auth-page .rh-auth-helper {
  margin-top: -.35rem;
}

.rh-v2-auth-page .rh-auth-helper a,
.rh-v2-auth-page .rh-auth-secondary,
.rh-v2-auth-page .rh-auth-secondary a {
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-page .rh-auth-secondary {
  margin-top: 1.25rem;
  color: var(--rh-v2-color-muted-foreground);
}

.rh-v2-auth-page .rh-auth-helper a,
.rh-v2-auth-page .rh-auth-secondary a {
  color: var(--rh-v2-color-primary);
  font-weight: var(--rh-v2-weight-medium);
}

.rh-v2-auth-page .rh-auth-alert {
  margin: 0 0 1rem;
  padding: .7rem .8rem;
  border: 1px solid color-mix(in oklab, var(--rh-v2-color-danger) 40%, transparent);
  border-radius: var(--rh-v2-radius-md);
  color: color-mix(in oklab, var(--rh-v2-color-danger) 85%, white);
  background: color-mix(in oklab, var(--rh-v2-color-danger) 10%, transparent);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-page .rh-auth-tabs {
  gap: .55rem;
}

.rh-v2-auth-page .rh-auth-tabs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rh-v2-auth-page .rh-auth-tab {
  min-height: 3.25rem;
  padding: .65rem;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-md);
  background: transparent;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  box-shadow: none;
}

.rh-v2-auth-page .rh-auth-tab.is-active {
  border-color: color-mix(in oklab, var(--rh-v2-color-primary) 50%, transparent);
  color: var(--rh-v2-color-primary);
  background: color-mix(in oklab, var(--rh-v2-color-primary) 10%, transparent);
}

.rh-v2-auth-page .rh-auth-tab-rich strong,
.rh-v2-auth-page .rh-auth-tab-rich small {
  display: block;
}

.rh-v2-auth-page .rh-auth-tab-rich strong {
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-page .rh-auth-tab-rich small {
  margin-top: .2rem;
  color: inherit;
  font-size: var(--rh-v2-text-2xs);
}

.rh-v2-auth-page .rh-auth-intent-note,
.rh-v2-auth-page .rh-auth-context,
.rh-v2-auth-page .rh-auth-location-head p,
.rh-v2-auth-page .rh-auth-password-hints {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-page .rh-auth-location-card {
  padding: 1rem;
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-2) 55%, transparent);
}

.rh-v2-auth-page .rh-auth-location-head strong {
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-auth-page .rh-auth-check {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-page .rh-auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rh-v2-color-primary);
}

.rh-v2-auth-page .rh-auth-check a {
  color: var(--rh-v2-color-primary);
}

.rh-v2-preview-indicator {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--rh-v2-z-toast);
  display: grid;
  gap: .15rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: .65rem .8rem;
  border: 1px solid var(--rh-v2-color-border-strong);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-background) 90%, transparent);
  box-shadow: var(--rh-v2-shadow-md);
  backdrop-filter: blur(16px);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-preview-indicator strong {
  color: var(--rh-v2-color-primary);
}

.rh-v2-preview-indicator small {
  color: var(--rh-v2-color-muted-foreground);
}

@media (max-width: 767px) {
  .rh-v2-auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .rh-v2-auth-visual {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 13.75rem;
  }

  .rh-v2-auth-visual__inner {
    min-height: 13.75rem;
    padding: 1.25rem;
  }

  .rh-v2-auth-story,
  .rh-v2-auth-visual__inner > small {
    display: none;
  }

  .rh-v2-auth-page .rh-auth-main {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
    align-items: flex-start;
    padding: 2rem 1.25rem 4rem;
  }

  .rh-v2-auth-page .rh-auth-tabs-three,
  .rh-v2-auth-page .rh-auth-name-grid,
  .rh-v2-auth-page .rh-auth-password-grid,
  .rh-v2-auth-page .rh-auth-location-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v2-auth-story,
  .rh-v2-auth-page .rh-auth-shell {
    animation: none;
  }
}

/* F4B · Verificación y activación de cuenta */
.rh-v2-auth-page--verify-email .rh-auth-shell,
.rh-v2-auth-page--verify-pending .rh-auth-shell {
  width: min(100%, 34rem);
}

.rh-v2-auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.rh-v2-auth-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
}

.rh-v2-auth-steps li > span {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rh-v2-color-surface-2);
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-2xs);
  font-weight: var(--rh-v2-weight-semibold);
}

.rh-v2-auth-steps li.is-active > span {
  background: var(--rh-v2-color-primary);
  color: var(--rh-v2-color-primary-foreground);
}

.rh-v2-auth-steps li.is-done > span {
  color: var(--rh-v2-color-success);
  background: color-mix(in oklab, var(--rh-v2-color-success) 14%, transparent);
}

.rh-v2-auth-steps li.is-active strong {
  color: var(--rh-v2-color-foreground);
}

.rh-v2-auth-verification {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-2) 70%, transparent);
}

.rh-v2-auth-verification__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.rh-v2-auth-verification__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.rh-v2-auth-verification--success .rh-v2-auth-verification__icon {
  color: var(--rh-v2-color-success);
  background: color-mix(in oklab, var(--rh-v2-color-success) 14%, transparent);
}

.rh-v2-auth-verification--warning .rh-v2-auth-verification__icon {
  color: var(--rh-v2-color-warning);
  background: color-mix(in oklab, var(--rh-v2-color-warning) 14%, transparent);
}

.rh-v2-auth-verification--error .rh-v2-auth-verification__icon {
  color: var(--rh-v2-color-danger);
  background: color-mix(in oklab, var(--rh-v2-color-danger) 12%, transparent);
}

.rh-v2-auth-verification h2 {
  margin: 0;
  font-family: var(--rh-v2-font-display);
  font-size: var(--rh-v2-text-lg);
  font-weight: var(--rh-v2-weight-semibold);
}

.rh-v2-auth-verification p {
  margin: .35rem 0 0;
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-sm);
  line-height: var(--rh-v2-leading-normal);
}

.rh-v2-auth-email-chip {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: .45rem .7rem;
  overflow-wrap: anywhere;
  border: 1px solid color-mix(in oklab, var(--rh-v2-color-primary) 28%, transparent);
  border-radius: 999px;
  color: var(--rh-v2-color-primary);
  background: color-mix(in oklab, var(--rh-v2-color-primary) 9%, transparent);
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-medium);
}

.rh-v2-auth-verification-tips {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-2) 48%, transparent);
}

.rh-v2-auth-verification-tips > span {
  color: var(--rh-v2-color-muted-foreground);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-verification-tips ul {
  display: grid;
  gap: .45rem;
  margin: .65rem 0 0;
  padding: 0;
  list-style: none;
}

.rh-v2-auth-verification-tips li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--rh-v2-color-foreground);
  font-size: var(--rh-v2-text-sm);
}

.rh-v2-auth-verification-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rh-v2-color-success);
  font-weight: var(--rh-v2-weight-semibold);
}

.rh-v2-auth-page .rh-v2-auth-sent-notice {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid color-mix(in oklab, var(--rh-v2-color-success) 35%, transparent);
  border-radius: var(--rh-v2-radius-md);
  color: color-mix(in oklab, var(--rh-v2-color-success) 80%, white);
  background: color-mix(in oklab, var(--rh-v2-color-success) 10%, transparent);
  font-size: var(--rh-v2-text-xs);
}

.rh-v2-auth-actions {
  display: grid;
  gap: .75rem;
}

.rh-v2-auth-actions .rh-auth-secondary {
  margin-top: 0;
  text-align: center;
}

@media (max-width: 480px) {
  .rh-v2-auth-steps {
    gap: .25rem;
  }

  .rh-v2-auth-steps li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .3rem;
  }

  .rh-v2-auth-steps li > span {
    width: 1.5rem;
    height: 1.5rem;
  }

  .rh-v2-auth-verification {
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: .85rem;
  }

  .rh-v2-auth-verification__icon {
    width: 3rem;
    height: 3rem;
  }
}



/* F4C · Integración del recorrido Auth */
.rh-v2-auth-flow-nav {
  margin: 0 0 1.25rem;
  overflow: hidden;
  border: 1px solid var(--rh-v2-color-border);
  border-radius: var(--rh-v2-radius-lg);
  background: color-mix(in oklab, var(--rh-v2-color-surface-2) 52%, transparent);
}

.rh-v2-auth-flow-nav ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: .3rem;
  list-style: none;
}

.rh-v2-auth-flow-nav li {
  min-width: 0;
}

.rh-v2-auth-flow-nav a {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .45rem .55rem;
  border-radius: calc(var(--rh-v2-radius-lg) - .2rem);
  color: var(--rh-v2-color-muted-foreground);
  text-decoration: none;
  font-size: var(--rh-v2-text-xs);
  font-weight: var(--rh-v2-weight-medium);
  transition: color var(--rh-v2-motion-fast) var(--rh-v2-ease-standard), background var(--rh-v2-motion-fast) var(--rh-v2-ease-standard);
}

.rh-v2-auth-flow-nav a > span {
  width: .42rem;
  height: .42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--rh-v2-color-border-strong);
}

.rh-v2-auth-flow-nav li.is-active a {
  color: var(--rh-v2-color-foreground);
  background: var(--rh-v2-color-surface);
  box-shadow: var(--rh-v2-shadow-xs);
}

.rh-v2-auth-flow-nav li.is-active a > span {
  background: var(--rh-v2-color-primary);
  box-shadow: 0 0 0 .2rem color-mix(in oklab, var(--rh-v2-color-primary) 15%, transparent);
}

.rh-v2-auth-flow-nav a:focus-visible {
  outline: 2px solid var(--rh-v2-color-primary);
  outline-offset: -2px;
}

.rh-v2-auth-flow-context {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: -.55rem 0 1.15rem;
  padding: .38rem .6rem;
  border: 1px solid color-mix(in oklab, var(--rh-v2-color-primary) 28%, transparent);
  border-radius: 999px;
  color: var(--rh-v2-color-muted-foreground);
  background: color-mix(in oklab, var(--rh-v2-color-primary) 8%, transparent);
  font-size: var(--rh-v2-text-2xs);
}

.rh-v2-auth-flow-context strong {
  color: var(--rh-v2-color-primary);
  font-weight: var(--rh-v2-weight-semibold);
}

@media (max-width: 480px) {
  .rh-v2-auth-flow-nav a {
    min-height: 2.5rem;
    padding: .4rem .25rem;
  }

  .rh-v2-auth-flow-nav a > span {
    display: none;
  }
}
