body.auth-body {
  min-height: 100vh;
  background: #ffffff;
  color: var(--jas-ink);
  font-family: var(--jas-font, "Manrope", "Aptos", "Segoe UI Variable", "Segoe UI", Arial, Helvetica, sans-serif);
}

body.auth-body::before {
  display: none;
}

.auth-body .secondary-floating-header {
  position: absolute;
  top: clamp(1rem, 2vw, 2rem);
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 3rem), 1520px);
  margin-top: 0;
  margin-inline: 0;
  transform: translateX(-50%);
  animation: authHeaderDrop 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authHeaderDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -24px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.auth-body #contenido {
  position: relative;
  min-height: 930px;
  overflow: hidden;
  padding: clamp(10.2rem, 15vh, 12.2rem) clamp(1rem, 5vw, 4rem) clamp(6rem, 9vw, 8rem);
  background: #123154 url("/assets/img/jobsandsea-hero-marina.webp") center / cover no-repeat;
  isolation: isolate;
}

.auth-body #contenido::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: auto;
  background:
    linear-gradient(90deg, rgba(18, 49, 84, 0.66), rgba(18, 49, 84, 0.34) 50%, rgba(18, 49, 84, 0.18) 72%, rgba(18, 49, 84, 0.42)),
    linear-gradient(180deg, rgba(18, 49, 84, 0.08), rgba(18, 49, 84, 0.26) 58%, rgba(18, 49, 84, 0.72));
  content: "";
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 460px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, 1320px);
  min-height: auto;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}

.auth-shell__intro {
  display: grid;
  align-content: center;
  min-height: clamp(420px, 54vh, 600px);
  padding: 0;
  color: #ffffff;
  text-shadow: 0 10px 32px rgba(8, 22, 34, 0.36);
}

.auth-kicker {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-shell h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: var(--jas-font, "Manrope", "Aptos Display", "Segoe UI Variable", "Segoe UI", Arial, Helvetica, sans-serif);
  font-size: clamp(3.2rem, 6vw, 4.55rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-shell__intro p:last-child {
  max-width: 660px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 650;
  line-height: 1.32;
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  align-self: center;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-top: 6px solid var(--jas-magenta);
  border-radius: var(--jas-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 64px rgba(8, 22, 34, 0.22);
  backdrop-filter: blur(18px);
}

.auth-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 58, 127, 0.45), rgba(111, 137, 174, 0.24));
  content: "";
}

.auth-shell-email {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
}

.auth-email-panel {
  gap: 1.15rem;
}

.auth-email-panel form {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.auth-email-panel form label {
  display: grid;
  gap: 0.38rem;
  color: var(--jas-ink);
  font-size: 0.85rem;
  font-weight: 850;
}

.auth-email-panel form input {
  width: 100%;
  min-height: 50px;
  padding: 0 0.85rem;
  border: 1px solid rgba(18, 49, 84, 0.15);
  border-radius: 13px;
  background: #f7fafc;
  color: var(--jas-ink);
  font-weight: 700;
}

.auth-email-panel form input:focus {
  border-color: rgba(31, 99, 177, 0.55);
  outline: 3px solid rgba(31, 99, 177, 0.14);
  outline-offset: 0;
}

.auth-email-panel form .jas-btn {
  width: 100%;
}

.auth-email-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid rgba(31, 99, 177, 0.16);
  border-radius: 16px;
  background: #eef6fc;
}

.auth-email-status--error {
  border-color: rgba(181, 58, 127, 0.2);
  background: #fff3f8;
}

.auth-email-status__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--jas-blue, #1f63b1);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.auth-email-status--error .auth-email-status__icon {
  background: var(--jas-magenta, #b53a7f);
}

.auth-email-status strong,
.auth-email-status p {
  display: block;
  margin: 0;
}

.auth-email-status strong {
  color: var(--jas-ink);
  font-size: 1rem;
}

.auth-email-status p {
  margin-top: 0.28rem;
  color: var(--jas-text);
  font-size: 0.9rem;
  line-height: 1.42;
}

.auth-email-progress {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #f2f7fb;
  color: var(--jas-blue, #1f63b1);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-email-progress.is-active {
  display: block;
}

.auth-email-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.15rem;
}

.auth-google-button {
  width: 100%;
  min-height: 56px;
  box-shadow: 0 14px 28px rgba(181, 58, 127, 0.18);
}

.auth-google-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.auth-google-button:disabled {
  border-color: rgba(18, 49, 84, 0.16);
  background: #dbe4eb;
  color: #66758a;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-notice,
.auth-pending-copy,
.auth-dev-hint,
.auth-panel-copy {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: var(--jas-radius);
  line-height: 1.35;
}

.auth-notice-info,
.auth-pending-copy {
  background: #eef5fb;
  color: #385f7f;
}

.auth-notice-warning,
.auth-dev-hint {
  background: #fff7ed;
  color: #653124;
}

.auth-notice-error {
  background: #fff1f2;
  color: #8a2735;
}

.auth-dev-hint {
  font-size: 0.9rem;
}

.auth-panel-copy {
  padding: 0;
  color: var(--jas-text);
  font-size: 0.95rem;
}

.auth-link-grid,
.auth-action-grid,
.auth-logout-confirm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.auth-link-grid a,
.auth-inline-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(31, 99, 177, 0.18);
  border-radius: var(--jas-radius);
  background: #ffffff;
  color: var(--jas-blue);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.auth-link-grid a:hover,
.auth-inline-link:hover {
  border-color: rgba(31, 99, 177, 0.42);
  background: #eef2f7;
  text-decoration: none;
}

.auth-profile-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.auth-profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--jas-blue);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.auth-profile-summary p,
.auth-profile-summary strong,
.auth-profile-summary span {
  display: block;
  margin: 0;
}

.auth-profile-summary p,
.auth-account-list dt {
  color: var(--jas-muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-profile-summary strong {
  margin-top: 0.25rem;
  color: var(--jas-ink);
  font-size: 1.2rem;
}

.auth-profile-summary span,
.auth-account-list dd {
  color: var(--jas-text);
  overflow-wrap: anywhere;
}

.auth-account-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.auth-account-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--jas-line);
}

.auth-account-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.auth-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-logout-form {
  display: flex;
  justify-content: flex-start;
}

.auth-choice-form fieldset {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-choice-form legend {
  margin: 0 0 0.35rem;
  color: var(--jas-ink);
  font-size: 1.3rem;
  font-weight: 850;
}

.auth-choice-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid rgba(18, 49, 84, 0.12);
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
}

.auth-choice-option:has(input:checked) {
  border-color: rgba(181, 58, 127, 0.52);
  background: #fff4fa;
  box-shadow: inset 0 0 0 1px rgba(181, 58, 127, 0.08);
}

.auth-choice-option input {
  margin-top: 0.25rem;
  accent-color: var(--jas-magenta);
}

.auth-choice-option strong,
.auth-choice-option em {
  display: block;
}

.auth-choice-option strong {
  color: var(--jas-ink);
  font-size: 1.02rem;
}

.auth-choice-option em {
  margin-top: 0.25rem;
  color: var(--jas-text);
  font-style: normal;
  line-height: 1.35;
}

.auth-logout-confirm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .auth-body .secondary-floating-header {
    width: calc(100% - 2rem);
  }

  .auth-body #contenido {
    min-height: min(900px, 100%);
    padding: 8.5rem 1rem 4rem;
    background-image: url("/assets/img/jobsandsea-hero-marina-movil.webp");
    background-position: center top;
  }

  .auth-body #contenido::before {
    background:
      linear-gradient(180deg, rgba(18, 49, 84, 0.5), rgba(18, 49, 84, 0.22) 48%, rgba(18, 49, 84, 0.72)),
      linear-gradient(90deg, rgba(18, 49, 84, 0.22), rgba(255, 255, 255, 0.04) 58%, rgba(18, 49, 84, 0.22));
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .auth-shell__intro {
    min-height: auto;
    max-width: 720px;
    padding-top: 1.25rem;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: 100%;
  }

  .auth-shell__intro {
    padding: 0.75rem 0 0;
  }

  .auth-shell h1 {
    font-size: 2.7rem;
  }

  .auth-panel {
    padding: 1rem;
  }

  .auth-link-grid,
  .auth-action-grid,
  .auth-logout-confirm {
    grid-template-columns: 1fr;
  }

  .auth-account-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-account-list dd {
    text-align: left;
  }
}
