.fighter-register-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 184, 28, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #44515b 0%, #1f4e8c 58%, #163a6b 100%);
}

.fighter-register-hero-card {
  position: relative;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}

.fighter-register-hero-card-toggle {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.fighter-register-hero-card-content {
  overflow: hidden;
}

.fighter-register-hero-card-plus {
  display: none;
}

.fighter-register-hero-card-plus-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.fighter-register-hero-card-plus-line-vertical {
  transform: translate(-50%, -50%) rotate(90deg);
}

.fighter-register-logo-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 28, 0.26), transparent 40%),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 50px rgba(10, 20, 35, 0.26);
}

.fighter-register-logo {
  max-width: 8rem;
  max-height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(10, 20, 35, 0.18));
}

.fighter-register-hero-shell {
  position: relative;
}

.fighter-register-hero-content {
  transition: max-height 0.32s ease;
}

.fighter-register-hero-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.fighter-register-hero-toggle:hover {
  color: rgba(255, 255, 255, 0.88);
}

.fighter-register-hero-toggle-secondary {
  text-decoration: none;
}

.register-hero-display-title {
  color: #fff;
}

.floating-field {
  position: relative;
  display: block;
}

.floating-input {
  width: 100%;
  min-height: 5.15rem;
  border-radius: 1.35rem;
  border: 1px solid #cfd8e6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
  padding: 1.95rem 1.2rem 0.95rem;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  color: #163a6b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.floating-input:focus {
  border-color: #1f4e8c;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(31, 78, 140, 0.12),
    0 18px 32px rgba(31, 78, 140, 0.08);
  outline: none;
}

.floating-select {
  appearance: none;
  padding-right: 3.2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 1.35rem) calc(50% + 0.2rem),
    calc(100% - 0.98rem) calc(50% + 0.2rem);
  background-size: 0.48rem 0.48rem, 0.48rem 0.48rem;
  background-repeat: no-repeat;
}

.floating-label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  transform-origin: left top;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #6c7c95;
  pointer-events: none;
  transition: transform 0.18s ease, color 0.18s ease, top 0.18s ease, font-size 0.18s ease;
}

.floating-field.has-value .floating-label,
.floating-field:focus-within .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  top: 0.7rem;
  transform: scale(0.76);
  color: #1f4e8c;
}

.floating-field-select.has-value .floating-label {
  top: 0.7rem;
  transform: scale(0.76);
  color: #1f4e8c;
}

.floating-field.has-value .floating-input,
.floating-field-select.has-value .floating-input {
  background: #ffffff;
}

.register-role-picker {
  position: relative;
}

.register-role-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #163a6b;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.register-role-toggle:hover {
  color: #0f2e56;
}

.register-role-toggle-secondary {
  text-decoration: none;
}

@media (min-width: 768px) {
  .register-role-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .register-role-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fighter-register-hero .leading-7 {
    line-height: 1.5rem;
  }

  .register-hero-display-title {
    font-size: 2.25rem !important;
    line-height: 0.95 !important;
  }

  .fighter-register-hero-shell.is-collapsed .fighter-register-hero-content {
    overflow: hidden;
  }

  .fighter-register-hero-shell.is-expanded .fighter-register-hero-content {
    overflow: visible;
  }

  .fighter-register-hero-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 7rem 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(31, 78, 140, 0) 0%, rgba(31, 78, 140, 0.45) 35%, rgba(31, 78, 140, 0.82) 72%, rgba(31, 78, 140, 1) 100%);
    pointer-events: none;
  }

  .fighter-register-hero-overlay .fighter-register-hero-toggle {
    pointer-events: auto;
  }

  .fighter-register-hero-card {
    padding: 0.95rem 1rem;
  }

  .fighter-register-hero-card-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .fighter-register-hero-card-plus {
    position: relative;
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
  }

  .fighter-register-hero-card-content {
    max-height: 18rem;
    opacity: 1;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
  }

  .fighter-register-hero-card.is-collapsed .fighter-register-hero-card-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .fighter-register-hero-card.is-collapsed .fighter-register-hero-card-plus-line-vertical {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
    opacity: 1;
  }

  .fighter-register-hero-card.is-expanded .fighter-register-hero-card-plus-line-vertical {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
    opacity: 0;
  }

  .fighter-register-logo-ring {
    width: 8.75rem;
    height: 8.75rem;
  }

  .fighter-register-logo {
    max-width: 6.5rem;
    max-height: 6.5rem;
  }

  .register-role-picker.is-collapsed .register-role-card-grid {
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .register-role-picker.is-expanded .register-role-card-grid {
    overflow: visible;
    transition: max-height 0.32s ease;
  }

  .register-role-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 5rem 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.86) 38%, rgba(248, 250, 252, 0.98) 100%);
    pointer-events: none;
  }

  .register-role-overlay .register-role-toggle {
    pointer-events: auto;
  }

  .register-role-card-grid .role-card {
    opacity: 1;
    transform: translateY(0);
  }

  .register-role-picker.is-expanded .register-role-card-grid .role-card {
    animation: register-role-in 0.32s ease both;
    animation-delay: var(--role-stagger, 0ms);
  }

  .register-role-card-grid.is-animating-out .role-card {
    animation: register-role-out 0.22s ease both;
    animation-delay: 0ms !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .register-hero-display-title {
    font-size: 2.25rem !important;
    line-height: 0.95 !important;
  }

  .fighter-register-hero-shell.is-collapsed .fighter-register-hero-content {
    overflow: hidden;
  }

  .fighter-register-hero-shell.is-expanded .fighter-register-hero-content {
    overflow: visible;
  }

  .fighter-register-hero-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 7rem 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(31, 78, 140, 0) 0%, rgba(31, 78, 140, 0.45) 35%, rgba(31, 78, 140, 0.82) 72%, rgba(31, 78, 140, 1) 100%);
    pointer-events: none;
  }

  .fighter-register-hero-overlay .fighter-register-hero-toggle {
    pointer-events: auto;
  }

  .fighter-register-hero-card {
    padding: 0.95rem 1rem;
  }

  .fighter-register-hero-card-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .fighter-register-hero-card-plus {
    position: relative;
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
  }

  .fighter-register-hero-card-content {
    max-height: 18rem;
    opacity: 1;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
  }

  .fighter-register-hero-card.is-collapsed .fighter-register-hero-card-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .fighter-register-hero-card.is-collapsed .fighter-register-hero-card-plus-line-vertical {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
    opacity: 1;
  }

  .fighter-register-hero-card.is-expanded .fighter-register-hero-card-plus-line-vertical {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
    opacity: 0;
  }

  .register-role-picker.is-collapsed .register-role-card-grid {
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .register-role-picker.is-expanded .register-role-card-grid {
    overflow: visible;
    transition: max-height 0.32s ease;
  }

  .register-role-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 5rem 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.86) 38%, rgba(248, 250, 252, 0.98) 100%);
    pointer-events: none;
  }

  .register-role-overlay .register-role-toggle {
    pointer-events: auto;
  }

  .register-role-card-grid .role-card {
    opacity: 1;
    transform: translateY(0);
  }

  .register-role-picker.is-expanded .register-role-card-grid .role-card {
    animation: register-role-in 0.32s ease both;
    animation-delay: var(--role-stagger, 0ms);
  }

  .register-role-card-grid.is-animating-out .role-card {
    animation: register-role-out 0.22s ease both;
    animation-delay: 0ms !important;
  }
}

@keyframes register-role-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes register-role-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(12px);
  }
}
