/* Pantallas Ingresar / Registrarse — paleta panasweb-theme.css */

/* Sobrescribe body { background: … !important } de style.css */
body.panasweb-auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", "Noto Sans", system-ui, sans-serif;
  color: var(--theme-color3);
  overflow-x: hidden;
  background-color: var(--theme-color3) !important;
  background-image: linear-gradient(
    125deg,
    rgba(11, 33, 53, 0.96) 0%,
    rgba(43, 125, 212, 0.48) 48%,
    rgba(107, 91, 177, 0.52) 100%
  ) !important;
}

.panasweb-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 40px;
}

.panasweb-auth-top {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panasweb-auth-top--wide {
  max-width: 480px;
}

.panasweb-auth-top a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.panasweb-auth-top a:hover {
  color: #fff;
  opacity: 0.88;
}

.panasweb-auth-logo {
  display: block;
  line-height: 0;
  margin-bottom: 22px;
}

.panasweb-auth-logo img {
  height: 44px;
  width: auto;
}

/* Panel imagen + formulario (ingresar) */
.panasweb-auth-panel {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(11, 33, 53, 0.28);
}

.panasweb-auth-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #dde1e6;
  min-height: 240px;
}

.panasweb-auth-visual img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
}

.panasweb-auth-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(165deg, #e8f4fc 0%, #dcecf8 55%, #e6e9fb 100%);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 80px rgba(11, 33, 53, 0.28);
}

.panasweb-auth-card--in-panel {
  max-width: none;
  flex: 1 1 auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.panasweb-auth-panel--solo {
  max-width: 480px;
}

.panasweb-auth-panel--solo .panasweb-auth-card--in-panel {
  border-radius: 20px;
}

@media (min-width: 900px) {
  .panasweb-auth-panel:not(.panasweb-auth-panel--solo) {
    flex-direction: row;
    align-items: stretch;
    min-height: 520px;
  }

  .panasweb-auth-visual {
    flex: 0 0 44%;
    max-width: 44%;
    min-height: auto;
    padding: 40px 32px;
  }

  .panasweb-auth-visual img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(100%, 480px);
    object-fit: contain;
  }

  .panasweb-auth-panel:not(.panasweb-auth-panel--solo) .panasweb-auth-card--in-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px 40px;
  }
}

.panasweb-auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-color3);
  margin: 0 0 8px;
}

.panasweb-auth-lead {
  font-size: 0.9375rem;
  color: var(--gray-color);
  margin: 0 0 28px;
  line-height: 1.5;
}

.panasweb-auth-field {
  margin-bottom: 18px;
}

.panasweb-auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-color3);
  margin-bottom: 8px;
}

.panasweb-auth-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--bs-border-color2);
  border-radius: 10px;
  background: #fff;
  color: var(--theme-color3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panasweb-auth-field input:focus {
  outline: none;
  border-color: rgba(43, 125, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 125, 212, 0.15);
}

.panasweb-auth-field input::placeholder {
  color: var(--gray-color);
  opacity: 0.85;
}

.panasweb-auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(
    91deg,
    #42ade2 0%,
    var(--theme-color) 55%,
    var(--theme-color2) 100%
  );
  box-shadow: 0 8px 28px rgba(43, 125, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.panasweb-auth-submit:hover {
  box-shadow: 0 12px 36px rgba(43, 125, 212, 0.42);
}

.panasweb-auth-submit:active {
  transform: scale(0.98);
}

.panasweb-auth-meta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 33, 53, 0.1);
  font-size: 0.875rem;
  color: var(--gray-color);
  line-height: 1.55;
}

.panasweb-auth-meta a {
  color: var(--theme-color);
  font-weight: 700;
  text-decoration: none;
}

.panasweb-auth-meta a:hover {
  text-decoration: underline;
}

.panasweb-auth-note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--gray-color2);
  line-height: 1.5;
}

.panasweb-auth-note a {
  color: var(--theme-color);
  font-weight: 600;
}

@media (min-width: 480px) {
  .panasweb-auth-card {
    padding: 40px 40px 36px;
  }

  .panasweb-auth-logo img {
    height: 48px;
  }
}

/* --- Login dividido (ingresar / registrarse) — paleta logo Panasweb --- */
body.panasweb-auth-body--split {
  background: var(--light-color) !important;
  background-image: none !important;
}

.panasweb-auth-split {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.panasweb-auth-split__brand {
  display: none;
  flex: 0 0 30%;
  max-width: 380px;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: linear-gradient(
    155deg,
    var(--theme-color3) 0%,
    var(--dark-color3) 42%,
    var(--theme-color) 78%,
    var(--theme-color2) 100%
  );
  color: #fff;
}

.panasweb-auth-split__tagline {
  margin: 0;
  max-width: 340px;
  min-height: 3.6em;
  font-family: "Noto Sans", "Manrope", sans-serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}

.panasweb-auth-tagline__cursor {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.1em;
  background: rgba(255, 255, 255, 0.92);
  animation: panasweb-tagline-blink 0.85s step-end infinite;
}

@media (min-width: 900px) {
  .panasweb-auth-split__tagline {
    max-width: 360px;
    min-height: 4em;
    font-size: 1.9rem;
    line-height: 1.4;
  }
}

@keyframes panasweb-tagline-blink {
  50% {
    opacity: 0;
  }
}

.panasweb-auth-split__main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  background: linear-gradient(180deg, #fff 0%, var(--light-color) 100%);
}

.panasweb-auth-back {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(11, 33, 53, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--theme-color3);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panasweb-auth-back:hover {
  color: var(--theme-color);
  border-color: rgba(43, 125, 212, 0.35);
  box-shadow: 0 4px 14px rgba(43, 125, 212, 0.12);
}

.panasweb-auth-split__content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 48px;
}

.panasweb-auth-split__card {
  width: 100%;
  max-width: 400px;
}

.panasweb-auth-split__card--register {
  max-width: 520px;
}

.panasweb-auth-split__content--register {
  padding-top: 56px;
  padding-bottom: 40px;
}

.panasweb-auth-split__card--register .panasweb-auth-logo--split {
  margin-bottom: 18px;
}

.panasweb-auth-split__card--register .panasweb-auth-logo--split img {
  height: 64px;
}

.panasweb-auth-split__card--register .panasweb-auth-welcome {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.panasweb-auth-split__card--register .panasweb-auth-lead--split {
  margin-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.panasweb-auth-split__card--register .panasweb-auth-field--line {
  margin-bottom: 12px;
}

.panasweb-auth-split__card--register .panasweb-auth-field--line label {
  margin-bottom: 2px;
  font-size: 0.75rem;
}

.panasweb-auth-split__card--register .panasweb-auth-field--line input,
.panasweb-auth-split__card--register .panasweb-auth-field--line select {
  padding: 5px 0;
  font-size: 0.9375rem;
}

.panasweb-auth-split__card--register .panasweb-auth-field--line select {
  padding-right: 22px;
}

.panasweb-auth-split__card--register .panasweb-auth-password-toggle {
  bottom: 4px;
}

.panasweb-auth-split__card--register .panasweb-auth-submit--split {
  margin-top: 6px;
  padding: 12px 18px;
}

.panasweb-auth-split__card--register .panasweb-auth-meta--split {
  margin-top: 14px;
}

.panasweb-auth-field-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-bottom: 12px;
}

.panasweb-auth-field-row .panasweb-auth-field--line {
  margin-bottom: 0;
}

.panasweb-auth-logo--split {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 32px;
  text-align: center;
}

.panasweb-auth-logo--split img {
  display: block;
  width: auto;
  height: 72px;
  max-width: min(320px, 88vw);
  margin: 0 auto;
}

@media (min-width: 480px) {
  .panasweb-auth-logo--split img {
    height: 88px;
    max-width: min(360px, 90vw);
  }
}

.panasweb-auth-welcome {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-color3);
}

.panasweb-auth-lead--split {
  margin: 0 0 32px;
  font-size: 0.9375rem;
  color: var(--gray-color);
}

.panasweb-auth-field--line {
  margin-bottom: 24px;
}

.panasweb-auth-field--line label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-color2);
}

.panasweb-auth-field--line input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--light-color4);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--theme-color3);
  box-shadow: none;
}

.panasweb-auth-field--line input:focus {
  outline: none;
  border-bottom-color: var(--theme-color);
  box-shadow: none;
}

.panasweb-auth-field--line input::placeholder {
  color: var(--gray-color);
  opacity: 0.75;
}

.panasweb-auth-field--line select {
  width: 100%;
  padding: 10px 24px 10px 0;
  border: none;
  border-bottom: 1px solid var(--light-color4);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c6374' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  font-size: 1rem;
  font-family: inherit;
  color: var(--theme-color3);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.panasweb-auth-field--line select:focus {
  outline: none;
  border-bottom-color: var(--theme-color);
}

.panasweb-auth-field--line select:invalid {
  color: var(--gray-color);
}

.panasweb-phone-picker {
  position: relative;
}

.panasweb-phone-picker__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 0;
  border: none;
  border-bottom: 1px solid var(--light-color4);
  background: transparent;
  color: var(--theme-color3);
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.panasweb-phone-picker__trigger:hover,
.panasweb-phone-picker.is-open .panasweb-phone-picker__trigger {
  border-bottom-color: var(--theme-color);
}

.panasweb-phone-picker__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--gray-color);
}

.panasweb-phone-picker.has-value .panasweb-phone-picker__text {
  color: var(--theme-color3);
}

.panasweb-phone-picker__chev {
  flex-shrink: 0;
  color: var(--gray-color2);
  transition: transform 0.2s ease;
}

.panasweb-phone-picker.is-open .panasweb-phone-picker__chev {
  transform: rotate(180deg);
}

.panasweb-phone-picker__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--light-color4);
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 33, 53, 0.12);
}

.panasweb-phone-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--theme-color3);
  cursor: pointer;
  transition: background 0.15s ease;
}

.panasweb-phone-picker__option:hover,
.panasweb-phone-picker__option.is-active {
  background: var(--light-color);
}

.panasweb-phone-picker__option.is-selected {
  background: rgba(43, 125, 212, 0.1);
  font-weight: 600;
}

.panasweb-auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.panasweb-auth-password-wrap input {
  padding-right: 40px;
}

.panasweb-auth-password-toggle {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.panasweb-auth-password-toggle:hover {
  color: var(--theme-color);
}

.panasweb-auth-eye--hide {
  display: none;
}

.panasweb-auth-password-toggle.is-visible .panasweb-auth-eye--show {
  display: none;
}

.panasweb-auth-password-toggle.is-visible .panasweb-auth-eye--hide {
  display: block;
}

.panasweb-auth-submit--split {
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(
    91deg,
    #42ade2 0%,
    var(--theme-color) 55%,
    var(--theme-color2) 100%
  );
  box-shadow: 0 8px 28px rgba(43, 125, 212, 0.32);
}

.panasweb-auth-submit--split:hover {
  box-shadow: 0 12px 36px rgba(43, 125, 212, 0.42);
}

.panasweb-auth-forgot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.875rem;
}

.panasweb-auth-forgot a {
  color: var(--gray-color);
  text-decoration: none;
}

.panasweb-auth-forgot a:hover {
  color: var(--theme-color);
  text-decoration: underline;
}

.panasweb-auth-meta--split {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
  font-size: 0.875rem;
}

.panasweb-auth-meta--split a {
  color: var(--theme-color);
  font-weight: 700;
}

.panasweb-auth-meta--split a:hover {
  color: var(--theme-color2);
}

.panasweb-auth-note--split {
  margin-top: 24px;
  text-align: center;
  font-size: 0.75rem;
}

.panasweb-auth-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.45;
}

.panasweb-auth-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panasweb-auth-wa:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

@media (min-width: 900px) {
  .panasweb-auth-split__brand {
    display: flex;
    flex: 0 0 28%;
    max-width: none;
  }

  .panasweb-auth-split__content {
    padding: 48px 40px;
  }
}

@media (max-width: 899px) {
  .panasweb-auth-back {
    top: 16px;
    right: 16px;
  }

  .panasweb-auth-split__content {
    padding-top: 72px;
  }

  .panasweb-auth-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .panasweb-auth-field-row .panasweb-auth-field--line {
    margin-bottom: 12px;
  }

  .panasweb-auth-field-row .panasweb-auth-field--line:last-child {
    margin-bottom: 0;
  }

  .panasweb-auth-split__content--register {
    padding-top: 64px;
    padding-bottom: 32px;
  }

  .panasweb-auth-wa {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .panasweb-auth-wa svg {
    width: 24px;
    height: 24px;
  }
}
