/* Fondo continuo de registro usando la textura pública vigente */
.registro-page {
  background:
    radial-gradient(circle at top center, rgba(228, 208, 255, 0.6), transparent 28%),
    linear-gradient(180deg, #fcf8ff 0%, #f5edff 46%, #fbf7ff 100%);
}

/* Registro: estilo homologado para Investigación y Beca */
.registro-page .custom-navbar:not(.scrolled) .nav-link {
  color: var(--purple-600) !important;
}

.registro-page .custom-navbar:not(.scrolled) .dropdown-toggle::after {
  border-top-color: var(--purple-600);
}

.registro-page .registro-hero {
  min-height: clamp(300px, 35vw, 420px);
  height: auto;
  padding: clamp(6.75rem, 9vw, 8rem) 0 clamp(4rem, 5.8vw, 5rem);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(180deg, rgba(252, 248, 255, 0.95) 0%, rgba(244, 234, 255, 0.94) 100%);
  overflow: hidden;
}

.registro-page .registro-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(182, 54, 234, 0.08), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(182, 54, 234, 0.12), transparent 28%);
}

.registro-page .registro-hero__content {
  z-index: 1;
  width: 100%;
  position: relative;
  max-width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.registro-page .registro-hero__branding {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: end;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.registro-page .registro-hero__aside {
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-content: end;
}

.registro-page .registro-hero__brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: min(100%, 330px);
  min-width: min(100%, 260px);
  padding: 1rem 1.45rem;
  border-radius: 1.55rem;
  background: var(--home-support-surface, linear-gradient(160deg, rgba(63, 10, 94, 0.98), rgba(32, 35, 84, 0.96)));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 42px rgba(46, 19, 87, 0.18);
  opacity: 1;
}

.registro-page .registro-hero__brand-row img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.registro-page .registro-hero__brand-row img:first-child {
  max-height: 2.75rem;
}

.registro-page .registro-hero__brand-row img:last-child {
  max-height: 2.55rem;
}

.registro-page .registro-hero__copy {
  display: grid;
  justify-items: start;
  align-content: end;
  gap: clamp(0.85rem, 1.4vw, 1.3rem);
  max-width: 38rem;
}

.registro-page .home-eyebrow--light.registro-hero__eyebrow {
  background: linear-gradient(180deg, rgba(243, 221, 255, 0.92), rgba(223, 173, 255, 0.72));
  border: 1px solid rgba(165, 42, 216, 0.16);
  color: var(--purple-500);
  box-shadow: 0 14px 30px rgba(182, 54, 234, 0.08);
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(0.64rem, 0.92vw, 0.86rem);
  letter-spacing: 0.14em;
}

.registro-page .registro-hero h1 {
  color: #b636ea;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
  letter-spacing: -0.035em;
  margin-bottom: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 4.85rem);
  text-align: left;
}

.registro-page .registro-hero__lead {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: #5b6570;
  text-align: left;
}

.registro-page .registro-hero__tutorial-btn.home-cta--hero-button {
  min-width: min(100%, 220px);
  margin-top: 0;
  justify-self: center;
}

.registro-theme {
  padding-bottom: clamp(3.5rem, 5vw, 5rem);
}

.registro-theme .registro-shell {
  max-width: min(1280px, calc(100% - 2rem));
  margin-top: -4.5rem !important;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.34) !important;
  border: 1px solid rgba(182, 54, 234, 0.1) !important;
  border-radius: 2rem !important;
  box-shadow: 0 28px 60px rgba(125, 0, 144, 0.12);
  backdrop-filter: blur(18px);
}

.registro-theme #formulario {
  align-items: stretch;
}

.registro-theme #formulario > .registro-main-column {
  flex: 1;
  min-width: 0;
}

.registro-theme.registro-theme-investigacion .registro-shell,
.registro-theme.registro-theme-beca .registro-shell {
  max-width: min(1240px, calc(100% - 2rem));
  margin-top: -2.5rem !important;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none;
  backdrop-filter: none;
}

.registro-theme.registro-theme-investigacion #formulario,
.registro-theme.registro-theme-beca #formulario {
  padding: 0 !important;
  gap: clamp(1.5rem, 2.4vw, 2rem);
}

.registro-theme .registro-steps-panel {
  border-radius: 1.6rem !important;
  overflow: hidden !important;
  background-clip: padding-box;
  border: none !important;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #40206b 0%, #331857 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 38px rgba(51, 24, 87, 0.26);
}

.registro-theme .registro-step-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(125, 0, 144, 0.14);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
}

.registro-theme .registro-stepper small {
  color: #5f6772 !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.registro-theme .registro-steps-panel .display-4,
.registro-theme .registro-steps-panel .lead {
  color: #eff5ff;
}

/* Círculo de paso */
.step-circle {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  margin-bottom: 5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.registro-theme .step-circle.bg-primary {
  background-color: var(--orange) !important;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 16px rgba(165, 42, 216, 0.3);
  transform: translateY(-1px);
}

.registro-theme .step-circle.bg-secondary {
  background-color: rgba(125, 0, 144, 0.34) !important;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.registro-theme .registro-form-card {
  background: #fff !important;
  border: 1px solid rgba(125, 0, 144, 0.14) !important;
  box-shadow: 0 16px 30px rgba(125, 0, 144, 0.08);
  border-radius: 1.7rem !important;
}

.registro-theme .registro-form-card h5 {
  color: var(--purple-600);
  font-weight: 700;
}

.registro-theme .progress {
  height: 12px;
  background: #f0e2fa;
}

.registro-theme .progress .progress-bar {
  background: linear-gradient(90deg, var(--purple-300), var(--purple-500)) !important;
}

.registro-theme .progress .progress-bar.bg-info {
  background: linear-gradient(90deg, var(--purple-300), var(--purple-500)) !important;
}

.registro-theme label,
.registro-theme .form-check-label {
  color: #4b5563;
  font-weight: 500;
}

.registro-theme .registro-help-trigger {
  color: var(--purple-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.registro-theme .registro-help-trigger:hover,
.registro-theme .registro-help-trigger:focus {
  color: var(--purple-600);
  transform: translateY(-1px);
}

.registro-theme .registro-localidad-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0;
  overflow: visible;
}

.registro-theme .registro-localidad-toggle .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-color: rgba(125, 0, 144, 0.28);
  accent-color: var(--purple-500);
}

.registro-theme .registro-localidad-toggle .form-check-input:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.22rem rgba(165, 42, 216, 0.18);
}

.registro-theme .registro-localidad-toggle .form-check-input:checked {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

.registro-theme .registro-localidad-toggle .form-check-label {
  margin-bottom: 0;
}

.registro-theme .form-check-input[type="radio"] {
  border-color: rgba(125, 0, 144, 0.26);
  accent-color: var(--purple-500);
}

.registro-theme .form-check-input[type="radio"]:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.2rem rgba(165, 42, 216, 0.16);
}

.registro-theme .form-check-input[type="radio"]:checked {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

.registro-theme .form-control,
.registro-theme .form-select {
  border-color: rgba(125, 0, 144, 0.22);
}

.registro-theme .form-control:focus,
.registro-theme .form-select:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.2rem rgba(165, 42, 216, 0.16);
}

.registro-theme .form-control.border-0.border-bottom,
.registro-theme .form-select.border-0.border-bottom {
  border-bottom-color: rgba(125, 0, 144, 0.22) !important;
}

.registro-theme .btn-primary,
.registro-theme .btn-secondary,
.registro-theme .btn-outline-primary,
.registro-theme .btn-success {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(125, 0, 144, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.registro-theme .btn-primary {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

.registro-theme .btn-primary:hover,
.registro-theme .btn-primary:focus {
  background-color: var(--purple-600);
  border-color: var(--purple-600);
}

.registro-theme .btn-outline-primary {
  color: var(--purple-500);
  border-color: rgba(125, 0, 144, 0.36);
  background-color: #ffffff;
}

.registro-theme .btn-outline-primary:hover,
.registro-theme .btn-outline-primary:focus {
  color: #ffffff;
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

.registro-theme .btn-secondary {
  background-color: #6d7280;
  border-color: #6d7280;
}

.registro-theme .btn-secondary:hover,
.registro-theme .btn-secondary:focus {
  background-color: #5f6471;
  border-color: #5f6471;
}

.registro-theme .btn-success {
  background-color: var(--purple);
  border-color: var(--purple);
}

.registro-theme .btn-success:hover,
.registro-theme .btn-success:focus {
  background-color: var(--purple-600);
  border-color: var(--purple-600);
}

.registro-theme .btn-primary:hover,
.registro-theme .btn-primary:focus,
.registro-theme .btn-secondary:hover,
.registro-theme .btn-secondary:focus,
.registro-theme .btn-outline-primary:hover,
.registro-theme .btn-outline-primary:focus,
.registro-theme .btn-success:hover,
.registro-theme .btn-success:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(125, 0, 144, 0.18);
}

.registro-theme .alert-info {
  border: 1px solid #e2c6f6;
  background-color: #f8efff;
  color: var(--purple-600);
}

.registro-theme .alert-light {
  border: 1px solid #eedec6;
  background-color: #fffaf2;
}

.registro-theme .alert-warning {
  border: 1px solid #ffd495;
  background-color: #fff4e0;
  color: #8f5a00;
}

.registro-theme .alert-success {
  border: 1px solid rgba(165, 42, 216, 0.18);
  background: linear-gradient(180deg, rgba(245, 236, 255, 0.96), rgba(236, 224, 250, 0.96));
  color: #4a2a72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.registro-theme .alert-success .bi-file-earmark-check-fill,
.registro-theme .alert-success .bi-check-circle-fill,
.registro-theme .alert-success .bi-check-circle {
  color: var(--purple-500);
}

.registro-theme .registro-beca__stacked-field {
  gap: 0.55rem;
}

.registro-theme .registro-beca__stacked-label {
  margin: 0;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.35;
}

.registro-theme .registro-beca__control,
.registro-theme .registro-beca__textarea {
  width: 100%;
}

.registro-theme .registro-beca__textarea {
  min-height: 5.35rem;
}

.registro-theme .registro-beca__document-label-col {
  gap: 0.85rem;
}

.registro-theme .registro-beca__document-label {
  width: min(100%, 220px);
  margin: 0;
  white-space: nowrap;
  line-height: 1.25;
}

.registro-theme #coautores_section .border.p-3.mb-3 {
  border-color: rgba(125, 0, 144, 0.16) !important;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #fdfdfd);
}

.registro-theme #coautores_section {
  --registro-coauthor-label-width: 8.25rem;
  --registro-coauthor-gap: 0.9rem;
}

.registro-theme .registro-coauthors__notice {
  margin-top: 0.8rem;
  margin-bottom: 1.35rem;
  border-color: rgba(182, 122, 25, 0.24);
  box-shadow: 0 12px 28px rgba(175, 133, 59, 0.08);
}

.registro-theme .registro-coauthors__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.registro-theme .registro-coauthors__actions .btn {
  margin-right: 0 !important;
}

.registro-theme .registro-coauthors__add {
  min-width: 12rem;
  box-shadow: 0 16px 30px rgba(125, 0, 144, 0.18);
}

.registro-theme .registro-coauthors__save {
  min-width: 11rem;
}

.registro-theme .registro-coauthors__actions--bottom {
  justify-content: flex-end;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(125, 0, 144, 0.12);
}

.registro-toast-container {
  z-index: 1085;
  bottom: 1rem !important;
}

.registro-theme .registro-toast {
  width: min(24rem, calc(100vw - 2rem));
  color: #3f235e;
  border: 1px solid rgba(125, 0, 144, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(47, 18, 82, 0.16);
}

.registro-theme .registro-toast__icon {
  color: var(--purple-500);
  line-height: 1.45;
}

.registro-theme .registro-coauthor-card {
  padding: 1.2rem 1.25rem !important;
}

.registro-theme .registro-coauthor-field {
  gap: 0.38rem;
}

.registro-theme .registro-coauthor-field__row {
  display: grid !important;
  grid-template-columns: minmax(0, var(--registro-coauthor-label-width)) minmax(0, 1fr);
  column-gap: var(--registro-coauthor-gap);
  align-items: center;
}

.registro-theme .registro-coauthor-field__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  white-space: nowrap;
  font-weight: 500;
  color: #5a6270;
}

.registro-theme .registro-coauthor-field__required {
  color: #dc3545;
  font-weight: 700;
  line-height: 1;
}

.registro-theme .registro-coauthor-field__required--placeholder {
  visibility: hidden;
}

.registro-theme .registro-coauthor-field__input {
  min-width: 0;
}

.registro-theme .registro-coauthor-field__error {
  padding-left: calc(var(--registro-coauthor-label-width) + var(--registro-coauthor-gap));
  margin-top: -0.05rem;
}

@media (max-width: 767.98px) {
  .registro-theme #coautores_section {
    --registro-coauthor-label-width: 100%;
  }

  .registro-theme .registro-coauthor-field__row {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }

  .registro-theme .registro-coauthor-field__error {
    padding-left: 0;
  }
}

.registro-theme .modal-content {
  border-radius: 1rem;
  border: 1px solid rgba(125, 0, 144, 0.16);
}

.registro-theme .modal-header {
  background: #f6ecff;
  color: var(--purple-600);
}

.registro-theme .text-primary {
  color: var(--purple-500) !important;
}

.registro-theme .bg-blue-roche-300 {
  background-color: var(--purple-500) !important;
}

/* Transición de desvanecimiento */
.fade-transition {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
  height: 0;
  overflow: hidden;
}

.fade-transition.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .registro-page [data-registro-reveal] {
    opacity: 0;
    filter: blur(var(--registro-reveal-blur, 10px));
    transform: translate3d(var(--registro-reveal-x, 0px), var(--registro-reveal-y, 22px), 0) scale(var(--registro-reveal-scale, 0.985));
    will-change: transform, opacity, filter;
    animation: registroReveal 920ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--registro-reveal-delay, 0ms);
  }

  .registro-page .registro-hero__eyebrow[data-registro-reveal],
  .registro-page .registro-hero h1[data-registro-reveal],
  .registro-page .registro-hero__lead[data-registro-reveal] {
    --registro-reveal-x: -24px;
    --registro-reveal-y: 18px;
    transform-origin: left top;
  }

  .registro-page .registro-hero__brand-row[data-registro-reveal],
  .registro-page .registro-hero__tutorial-btn[data-registro-reveal] {
    --registro-reveal-x: 24px;
    --registro-reveal-y: 18px;
    transform-origin: right top;
  }

  .registro-page .registro-shell[data-registro-reveal] {
    --registro-reveal-y: 28px;
    transform-origin: center top;
  }
}

@keyframes registroReveal {
  0% {
    opacity: 0;
    filter: blur(var(--registro-reveal-blur, 10px));
    transform: translate3d(var(--registro-reveal-x, 0px), var(--registro-reveal-y, 22px), 0) scale(var(--registro-reveal-scale, 0.985));
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .registro-page [data-registro-reveal] {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .registro-page .registro-hero {
    min-height: 300px;
    padding-top: 6.7rem;
    padding-bottom: 3.6rem;
  }

  .registro-page .registro-hero__branding {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.4rem;
  }

  .registro-page .registro-hero__copy,
  .registro-page .registro-hero__aside {
    justify-items: center;
  }

  .registro-page .registro-hero__aside {
    width: min(100%, 320px);
  }

  .registro-page .home-eyebrow--light.registro-hero__eyebrow,
  .registro-page .registro-hero__tutorial-btn.home-cta--hero-button {
    justify-self: center;
  }

  .registro-page .registro-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 6.2vw, 3.6rem);
    text-align: center;
  }

  .registro-page .registro-hero__lead {
    max-width: 36ch;
    text-align: center;
  }

  .registro-theme.registro-theme-investigacion .registro-shell,
  .registro-theme.registro-theme-beca .registro-shell {
    margin-top: -1.6rem !important;
  }

  .registro-theme.registro-theme-investigacion #formulario,
  .registro-theme.registro-theme-beca #formulario {
    padding: 0 !important;
  }

  .registro-theme .registro-shell {
    margin-top: -3.25rem !important;
    padding: 0.5rem;
  }

  .registro-theme .registro-beca__document-label {
    width: min(100%, 200px);
  }

  .registro-theme #formulario {
    padding: 1rem !important;
  }

  .registro-theme .registro-form-card {
    padding: 1.25rem !important;
  }
}

@media (max-width: 767.98px) {
  .registro-page .registro-hero {
    min-height: 280px;
    height: auto;
    padding-top: 5.35rem;
    padding-bottom: 2.5rem;
  }

  .registro-page .registro-hero__branding {
    gap: 1.15rem !important;
  }

  .registro-page .registro-hero__brand-row {
    gap: 0.9rem;
    width: min(100%, 290px);
  }

  .registro-page .registro-hero__branding img {
    width: auto !important;
    max-height: 42px;
  }

  .registro-page .registro-hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .registro-page .registro-hero__lead {
    font-size: 0.98rem;
    max-width: 28ch;
  }

  .registro-page .home-eyebrow--light.registro-hero__eyebrow {
    text-align: center;
  }

  .registro-theme.registro-theme-investigacion .registro-shell,
  .registro-theme.registro-theme-beca .registro-shell {
    max-width: calc(100% - 1rem);
    margin-top: -0.9rem !important;
  }

  .registro-theme .registro-beca__document-label-col {
    margin-top: 0 !important;
  }

  .registro-theme .registro-beca__document-label {
    width: auto;
    white-space: normal;
  }
}

/* Login de acceso homologado con la edición 42 */
.auth-login-page {
  min-height: 100vh;
  padding: clamp(0.85rem, 2vw, 1.5rem) 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 16%, rgba(223, 173, 255, 0.46), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(193, 90, 244, 0.2), transparent 26%),
    linear-gradient(180deg, #fcf8ff 0%, #f4ecff 100%);
}

.auth-login-page__shell {
  width: min(1180px, 100%);
  padding: 0;
}

.auth-login-page__frame {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 249, 255, 0.94));
  border-radius: 1.7rem;
  overflow: hidden;
  border: 1px solid rgba(125, 0, 144, 0.08);
}

.auth-login-page__brand {
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(160deg, rgba(63, 10, 94, 0.96), rgba(68, 28, 122, 0.9)),
    url("../img/bk.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.auth-login-page__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.14), transparent 26%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.auth-login-page__brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2.2vh, 1.8rem);
}

.auth-login-page__eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(22, 10, 39, 0.16);
}

.auth-login-page__logo-panel {
  padding: clamp(1rem, 1.6vw, 1.35rem);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 22px 40px rgba(39, 13, 73, 0.2);
}

.auth-login-page__logo-panel img {
  display: block;
  width: min(100%, 390px);
  height: auto;
}

.auth-login-page__brand-copy {
  display: grid;
  gap: 0.95rem;
  max-width: 30rem;
}

.auth-login-page__brand-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}

.auth-login-page__brand-copy p {
  margin: 0;
  color: rgba(250, 245, 255, 0.88);
  font-size: 1.03rem;
  line-height: 1.68;
}

.auth-login-page__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-login-page__tag {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-login-page__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 100% 0, rgba(223, 173, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 255, 0.95));
}

.auth-login-page__panel-inner {
  width: min(100%, 500px);
  display: grid;
  gap: 1rem;
}

.auth-login-page__panel-copy {
  display: grid;
  gap: 0.75rem;
}

.auth-login-page__panel-copy h2 {
  margin: 0;
  color: var(--purple-600);
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.auth-login-page__panel-copy p {
  margin: 0;
  color: #5f6772;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-login-page__status {
  margin-bottom: 0;
  border-radius: 1rem;
}

.auth-login-page__form {
  display: grid;
  gap: 1.1rem;
}

.auth-login-page__field {
  display: grid;
  gap: 0.55rem;
}

.auth-login-page__field label,
.auth-login-page__remember .form-check-label {
  color: #4b5563;
  font-weight: 500;
}

.auth-login-page__field .form-control {
  min-height: 3.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 0, 144, 0.2);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.95rem 1rem;
  font-size: 1.05rem;
  color: #2f3440;
  box-shadow: inset 0 1px 2px rgba(98, 0, 111, 0.05);
}

.auth-login-page__field .form-control::placeholder {
  color: #9ba3af;
}

.auth-login-page__field .form-control:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.22rem rgba(165, 42, 216, 0.14);
}

.auth-login-page__remember {
  margin: 0.2rem 0 0;
}

.auth-login-page__remember .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  border-color: rgba(125, 0, 144, 0.28);
  accent-color: var(--purple-500);
}

.auth-login-page__remember .form-check-input:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.22rem rgba(165, 42, 216, 0.16);
}

.auth-login-page__remember .form-check-input:checked {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

.auth-login-page__actions {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.35rem;
}

.auth-login-page__submit {
  min-height: 3.65rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-500) 58%, var(--purple-600) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(125, 0, 144, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.auth-login-page__submit:hover,
.auth-login-page__submit:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(125, 0, 144, 0.24);
  filter: saturate(1.04);
}

.auth-login-page__submit:disabled {
  opacity: 0.72;
  transform: none;
  box-shadow: 0 10px 20px rgba(125, 0, 144, 0.14);
}

.auth-login-page__forgot,
.auth-login-page__back-link {
  color: var(--purple-500);
  text-decoration: none;
  font-weight: 600;
}

.auth-login-page__forgot:hover,
.auth-login-page__forgot:focus,
.auth-login-page__back-link:hover,
.auth-login-page__back-link:focus {
  color: var(--purple-600);
}

.auth-login-page__footer {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

@media (max-width: 991.98px) {
  .auth-login-page {
    padding: 1rem;
  }

  .auth-login-page__frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-login-page__brand {
    min-height: 18rem;
  }

  .auth-login-page__panel {
    padding-top: 2.1rem;
  }
}

@media (max-width: 575.98px) {
  .auth-login-page__shell {
    padding: 0;
  }

  .auth-login-page__frame {
    border-radius: 1.15rem;
  }

  .auth-login-page__brand,
  .auth-login-page__panel {
    padding: 1.35rem;
  }

  .auth-login-page__brand {
    min-height: 16rem;
  }

  .auth-login-page__panel-copy h2 {
    font-size: 1.8rem;
  }
}
