﻿/*
  Tripwin Freelancer — Autenticación base
  Recurso consolidado, semántico y sin numeración de versión.
*/

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.notif-in {
  transform: translateX(120%);
  opacity: 0;
  animation: slideIn 0.3s ease-out forwards;
}

.notif-out {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes modalIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-in {
  animation: modalIn 0.16s ease-out both;
}

.shared-auth-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1216 0%, #2c3e50 100%);
  color: white;
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shared-auth-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/auth/registro/auth-bg.png") no-repeat center center;
  background-size: cover;
  opacity: 0.14;
}

.shared-auth-header__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.shared-auth-header__module {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
  color: #fb7305;
  font-weight: 600;
}

.shared-auth-header__logo {
  width: 54px;
  height: 54px;
  background: rgba(251, 115, 5, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 2px solid rgba(251, 115, 5, 0.28);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
}

.shared-auth-header__logo i {
  font-size: 22px;
  color: #fb7305;
}

.shared-auth-header__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.shared-auth-header__subtitle {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 14px;
  color: white;
}

.shared-auth-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.shared-auth-header__btn {
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
}

.shared-auth-header__btn--ghost {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shared-auth-header__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.shared-auth-header__btn--light {
  color: #fb7305;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}

.shared-auth-header__btn--light:hover {
  background: #fff7ef;
  color: #fb7305;
}

@media (min-width: 768px) {
  .shared-auth-header {
    padding: 22px 22px;
  }

  .shared-auth-header__module {
    font-size: 13px;
  }

  .shared-auth-header__logo {
    width: 60px;
    height: 60px;
  }

  .shared-auth-header__logo i {
    font-size: 25px;
  }

  .shared-auth-header__title {
    font-size: 21px;
  }

  .shared-auth-header__subtitle {
    font-size: 13px;
  }

}

.modal-content-prose h4 {
  font-size: 14px;
  font-weight: 600;
  color: #23262b;
  margin: 0 0 8px;
}

.modal-content-prose p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.6;
  font-size: 13px;
}

.modal-content-prose ul {
  margin: 0 0 12px 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.modal-content-prose li {
  margin-bottom: 6px;
}

.modal-note {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #475569;
}

.field-ok {
  border-color: rgb(134 239 172) !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.field-bad {
  border-color: rgb(252 165 165) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.hint-ok {
  color: rgb(22 163 74);
}

.hint-bad {
  color: rgb(220 38 38);
}

.strength-bar {
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.strength-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: all 0.25s ease;
  background: #cbd5e1;
}

.auth-footer-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.04);
}

.status-shell {
  display: none;
}

.app-submitted .form-shell {
  display: none;
}

.app-submitted .status-shell {
  display: block;
}

.status-card-ref {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #e5e7eb;
}

.timeline-step.done .timeline-dot {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.timeline-step.current .timeline-dot {
  background: #fb7305;
  border-color: #fb7305;
  color: white;
  box-shadow: 0 0 0 6px rgba(251, 115, 5, 0.1);
}

.timeline-step.pending .timeline-dot {
  background: white;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: rgba(251, 115, 5, 0.1);
  color: #fb7305;
  flex-shrink: 0;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}

select::-ms-expand {
  display: none;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--soft) 0%, #ffffff 100%);
}

:root {
  --brand: #fb7305;
  --brand-2: #ff9d42;
  --dark: #0f1216;
  --soft: #f6f7fb;
  --muted: #6b7280;
  --tripwin-btn-md-height: 40px;
  --tripwin-btn-md-padding-x: 16px;
  --tripwin-btn-md-font-size: 13px;
  --tripwin-btn-md-radius: 12px;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
a[href],
label[for],
input[type="checkbox"],
input[type="radio"],
select {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"],
.is-disabled {
  cursor: not-allowed !important;
}

.btn-md,
.shared-auth-header__btn {
  display: inline-flex;
  box-sizing: border-box;
  height: var(--tripwin-btn-md-height) !important;
  min-height: var(--tripwin-btn-md-height) !important;
  max-height: var(--tripwin-btn-md-height) !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--tripwin-btn-md-padding-x) !important;
  border-radius: var(--tripwin-btn-md-radius);
  font-size: var(--tripwin-btn-md-font-size) !important;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
}

.btn-md--nav {
  --tripwin-btn-md-height: 36px;
  --tripwin-btn-md-padding-x: 14px;
  --tripwin-btn-md-font-size: 12.5px;
  --tripwin-btn-md-radius: 999px;
}

.btn-md > i,
.shared-auth-header__btn > i {
  margin: 0 !important;
  line-height: 1;
}

.btn-md--block {
  width: 100%;
}

.btn-md:focus-visible,
.shared-auth-header__btn:focus-visible,
.auth-icon-btn:focus-visible {
  outline: 3px solid rgba(251, 115, 5, 0.24);
  outline-offset: 2px;
}

.auth-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .btn-md--responsive,
    .btn-md--nav {
    --tripwin-btn-md-height: 40px;
    --tripwin-btn-md-padding-x: 16px;
    width: 100%;
  }

  .shared-auth-header__btn {
    --tripwin-btn-md-height: 40px;
  }

}

.auth-module-page *,
.auth-module-page *::before,
.auth-module-page *::after {
  box-sizing: border-box;
}

.auth-page {
  display: flex !important;
  width: 100%;
  min-height: 100dvh !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: var(--auth-gutter-xs) !important;
}

.auth-shell {
  display: flex;
  width: min(100%, var(--auth-shell-max)) !important;
  min-height: calc(100dvh - (var(--auth-gutter-xs) * 2));
  flex-direction: column;
  border-radius: var(--auth-radius-shell) !important;
}

.auth-shell > [data-modulo],
.auth-shell > .auth-layout,
.auth-shell > .grid {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.auth-layout {
  flex: 1 1 auto;
}

.auth-panel,
.card-md {
  border-radius: var(--auth-radius-card) !important;
}

.auth-panel__body,
.card-md {
  padding: var(--auth-space-4) !important;
}

.auth-module-page .shared-auth-header__module {
  margin-bottom: 4px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em !important;
}

.auth-module-page .shared-auth-header__logo i {
  font-size: 15px !important;
}

.auth-module-page .shared-auth-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px !important;
}

.auth-module-page h1,
.auth-module-page h2,
.auth-module-page h3,
.auth-module-page h4,
.auth-module-page h5 {
  text-wrap: balance;
}

.auth-module-page button:disabled,
.auth-module-page .btn-md[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.62;
}

.auth-module-page .auth-icon-btn,
.auth-module-page button[data-toggle-password] {
  width: var(--auth-icon-button-size-md) !important;
  height: var(--auth-icon-button-size-md) !important;
  min-width: var(--auth-icon-button-size-md) !important;
  min-height: var(--auth-icon-button-size-md) !important;
  max-width: var(--auth-icon-button-size-md) !important;
  max-height: var(--auth-icon-button-size-md) !important;
  padding: 0 !important;
  cursor: pointer;
}

.auth-module-page .auth-footer-card p {
  margin: 0;
}

@media (max-width: 575.98px) {
  .auth-module-page .shared-auth-header__subtitle {
    font-size: 11px !important;
  }

}

@media (min-width: 576px) {
  .auth-page {
    padding: var(--auth-gutter-sm) !important;
  }

  .auth-shell {
    min-height: calc(100dvh - (var(--auth-gutter-sm) * 2));
  }

}

@media (min-width: 768px) {
  .auth-page {
    padding: var(--auth-gutter-md) !important;
  }

  .auth-shell {
    min-height: calc(100dvh - (var(--auth-gutter-md) * 2));
  }

  .auth-module-page .shared-auth-header {
    padding: 16px 20px 14px !important;
  }

  .auth-module-page .shared-auth-header__title {
    font-size: 21px !important;
  }

  .auth-module-page .auth-panel__body {
    padding: 18px !important;
  }

}

@media (min-width: 992px) {
  .auth-shell > [data-modulo] > .auth-layout,
    .auth-shell > .auth-layout,
    .auth-shell > .grid.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  }

  .auth-module-page .auth-aside > .relative,
    .auth-module-page .auth-aside > div:last-child {
    height: 100%;
  }

  .auth-module-page .auth-content {
    display: flex;
    align-items: center;
    padding: 20px !important;
  }

  .auth-module-page .auth-content > div {
    width: 100%;
  }

}

@media (min-width: 1200px) {
  .auth-shell > [data-modulo] > .auth-layout,
    .auth-shell > .auth-layout,
    .auth-shell > .grid.auth-layout {
    grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  }

  .auth-module-page .auth-content {
    padding: 22px !important;
  }

}

@media (min-width: 1400px) {
  .auth-module-page {
    --auth-shell-max: 1480px;
  }

  .auth-module-page .shared-auth-header__title {
    font-size: 22px !important;
  }

  .auth-module-page .auth-content {
    padding: 24px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .auth-module-page *,
    .auth-module-page *::before,
    .auth-module-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

body.auth-module-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.auth-module-page {
  --auth-gutter-xs: 8px;
  --auth-gutter-sm: 12px;
  --auth-gutter-md: 16px;
  --auth-shell-max: 1440px;
  --auth-control-height-md: 40px;
  --auth-button-height-md: 40px;
  --auth-icon-button-size-md: 40px;
  --auth-space-1: 4px;
  --auth-space-2: 8px;
  --auth-space-3: 12px;
  --auth-space-4: 16px;
  --auth-space-5: 20px;
  --auth-space-6: 24px;
  --auth-radius-control: 10px;
  --auth-radius-card: 14px;
  --auth-radius-shell: 20px;
  --auth-font-label: 11px;
  --auth-font-control: 13px;
  --auth-font-body: 12px;
  --auth-font-small: 10.5px;
  --auth-font-card-title: 13px;
  --auth-font-section-title: 18px;
  --auth-font-page-title: 20px;
  --auth-border: #e2e8f0;
  --auth-muted: #64748b;
  --auth-ink: #0f172a;
  --auth-brand: #fb7305;
  --auth-brand-dark: #e06604;
  --auth-brand-soft: #fff7ed;
  min-height: 100dvh;
  background: #f8fafc;
  color: var(--auth-ink);
  font-size: var(--auth-font-body);
  --auth-v5-shell-max: 1360px;
  --auth-v5-control-md: 36px;
  --auth-v5-button-md: 38px;
  --auth-v5-radius-control: 10px;
  --auth-v5-radius-card: 14px;
  --auth-v5-radius-shell: 20px;
}

.auth-module-page .shared-auth-header {
  flex: 0 0 auto;
  min-height: 0 !important;
  padding: 14px 16px 12px !important;
  padding: 13px 18px 11px !important;
}

.auth-module-page .shared-auth-header__inner {
  width: min(100%, 760px);
  max-width: 760px !important;
  width: min(100%, 900px) !important;
  max-width: 900px !important;
}

.auth-module-page .shared-auth-header__logo {
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto 6px !important;
  border-radius: 11px !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 auto 5px !important;
}

.auth-module-page .shared-auth-header__title {
  max-width: 760px !important;
  margin: 0 auto !important;
  font-size: var(--auth-font-page-title) !important;
  line-height: 1.28 !important;
  font-size: 19px !important;
}

.auth-module-page .shared-auth-header__subtitle {
  max-width: 70ch !important;
  margin: 4px auto 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  max-width: 74ch !important;
  margin-top: 3px !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.auth-module-page .shared-auth-header__microcopy {
  margin-top: 5px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  margin-top: 3px !important;
  font-size: 10px !important;
}

.auth-module-page button:disabled,
.auth-module-page [aria-disabled="true"],
.auth-module-page .is-pending {
  cursor: not-allowed !important;
}

.auth-module-page .auth-content {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 18px !important;
}

.auth-module-page .auth-content > div {
  width: 100% !important;
  max-width: 610px !important;
  margin: 0 auto !important;
}

.auth-module-page .auth-panel {
  width: 100%;
  border-radius: var(--auth-v5-radius-card) !important;
}

.auth-module-page .auth-panel__body {
  padding: 15px !important;
}

.auth-module-page .auth-footer-card {
  padding: 10px !important;
}

.auth-module-page .auth-footer-card > .grid {
  gap: 10px !important;
  gap: 8px !important;
}

.auth-module-page .auth-footer-card .rounded-xl {
  padding: 11px 12px !important;
  padding: 9px 10px !important;
}

.auth-module-page .auth-aside > div:last-child {
  padding: 16px 18px !important;
}

.auth-module-page .auth-aside .mt-8 {
  margin-top: 17px !important;
}

.auth-module-page .auth-aside .mt-6 {
  margin-top: 13px !important;
}

.auth-module-page .auth-aside .space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 8px !important;
}

.auth-module-page .auth-aside .rounded-xl {
  padding: 10px 11px !important;
}

@media (min-width: 992px) {
  .auth-module-page .auth-layout {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr) !important;
    align-items: stretch !important;
  }

}

@media (max-width: 575.98px) {
  .auth-module-page .shared-auth-header {
    padding: 12px 12px 10px !important;
    padding: 10px 12px 9px !important;
  }

  .auth-module-page .shared-auth-header__title {
    font-size: 17px !important;
    font-size: 16px !important;
  }

}
