/* Login — paarse gradient, glazen kaart, planeetring links. Eigen CSS. */

:root {
  --auth-ink: #3d1038;
  --auth-muted: rgba(61, 16, 56, 0.72);
  --auth-purple: #7c1172;
  --auth-purple-deep: #5a0c53;
  --auth-gold: #fdc400;
  --auth-line: rgba(90, 12, 83, 0.22);
  --auth-field: rgba(255, 255, 255, 0.62);
  --font-display: Manrope, "Segoe UI", sans-serif;
  --font-sans: Figtree, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse 46% 36% at 0% 0%, #070006 0%, rgba(7, 0, 6, 0.72) 32%, rgba(7, 0, 6, 0) 70%),
    radial-gradient(ellipse 58% 46% at 68% 58%, #d27ac6 0%, rgba(210, 122, 198, 0) 60%),
    linear-gradient(155deg, #140214 0%, #5a1248 38%, #8e2c78 64%, #2a0624 100%);
}

.auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 5rem;
  overflow: hidden;
  perspective: 1400px;
}

.auth__halo {
  position: absolute;
  width: 125vmax;
  height: 125vmax;
  left: -42vmax;
  top: 50%;
  margin-top: -62.5vmax;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: auth-halo-planet 14s ease-in-out infinite;
}

.auth__halo::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 196, 0, 0.42) 0%, rgba(156, 40, 145, 0.28) 32%, transparent 64%);
  filter: blur(10px);
}

.auth__halo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    transparent 0 52%,
    rgba(253, 196, 0, 0.15) 64%,
    #fdc400 76%,
    #fff6d4 82%,
    #9a228e 90%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 63%, #000 67.5%, transparent 71%);
  mask: radial-gradient(circle, transparent 60%, #000 63%, #000 67.5%, transparent 71%);
  filter: drop-shadow(0 0 28px rgba(253, 196, 0, 0.45));
  animation: auth-halo-spin 28s linear infinite;
}

.auth__halo-ring--soft {
  inset: -4%;
  background: conic-gradient(
    from 140deg,
    transparent 0 60%,
    rgba(255, 255, 255, 0.55) 74%,
    rgba(124, 17, 114, 0.35) 86%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 67%, #000 70%, transparent 74%);
  mask: radial-gradient(circle, transparent 64%, #000 67%, #000 70%, transparent 74%);
  filter: blur(5px);
  opacity: 0.9;
  animation-duration: 42s;
  animation-direction: reverse;
}

@keyframes auth-halo-spin {
  to { transform: rotateZ(360deg); }
}

@keyframes auth-halo-planet {
  0% { transform: rotateX(72deg) rotateY(-24deg) rotateZ(-8deg) scale(0.42); }
  50% { transform: rotateX(48deg) rotateY(16deg) rotateZ(12deg) scale(1.05); }
  100% { transform: rotateX(72deg) rotateY(-24deg) rotateZ(-8deg) scale(0.42); }
}

@media (max-width: 800px) {
  .auth__halo {
    left: -70vmax;
    animation-name: auth-halo-planet-mobile;
  }
}

@keyframes auth-halo-planet-mobile {
  0% { transform: rotateX(70deg) rotateZ(0deg) scale(0.34); }
  50% { transform: rotateX(50deg) rotateZ(10deg) scale(0.62); }
  100% { transform: rotateX(70deg) rotateZ(0deg) scale(0.34); }
}

@media (prefers-reduced-motion: reduce) {
  .auth__halo,
  .auth__halo-ring {
    animation: none;
  }

  .auth__halo {
    transform: rotateX(62deg) scale(0.7);
  }

  .auth__field label,
  .auth__field input,
  .auth__swap .auth__ico {
    transition: none;
  }
}


.auth__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  padding: 2.7rem 2.25rem 2.45rem;
  border-radius: 1.35rem; /* kwartcirkel, fallback */
  background: rgba(247, 232, 242, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px -32px rgba(90, 12, 83, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth__top {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 5.25rem;
  background: none;
}

.auth__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.auth__brand {
  display: flex;
  align-self: flex-end;
}

.auth__brand img {
  display: block;
  height: 3.5rem;
  width: auto;
}

.auth__nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-right: 6.25rem;
}

.auth__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.auth__pill:hover {
  border-color: var(--auth-purple);
  background: #fff;
  color: var(--auth-purple);
}

.auth__pill:focus-visible {
  outline: 2px solid var(--auth-gold);
  outline-offset: 2px;
}

.auth__swap {
  position: relative;
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.auth__ico {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.auth__swap .auth__ico {
  position: absolute;
  inset: 0;
  transition: opacity 0.15s ease;
}

.auth__ico--arrow {
  opacity: 0;
}

.auth__pill:hover .auth__ico--mark,
.auth__pill:focus-visible .auth__ico--mark {
  opacity: 0;
}

.auth__pill:hover .auth__ico--arrow,
.auth__pill:focus-visible .auth__ico--arrow {
  opacity: 1;
}

.auth__ico path,
.auth__ico rect,
.auth__ico circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 40rem) {
  .auth__bar,
  .auth__legal-bar {
    padding: 0 2rem;
  }

  .auth__bar {
    gap: 1.5rem;
  }

  .auth__brand img {
    height: 4rem;
  }

  .auth__nav {
    gap: 0.5rem;
    margin-right: 6.5rem;
  }

  .auth__pill {
    gap: 0.5rem;
    padding: 0 1rem;
  }
}

@media (min-width: 64rem) {
  .auth__bar,
  .auth__legal-bar {
    padding: 0 2.5rem;
  }
}

@media (max-width: 52rem) {
  .auth__nav {
    margin-right: 0;
  }
}

.auth__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--auth-purple);
}

.auth__lead {
  margin: 0.45rem 0 1.5rem;
  color: #111;
  text-align: center;
  line-height: 1.45;
}

.auth__field {
  margin-bottom: 0.95rem;
}

.auth__control {
  position: relative;
}

.auth__field label {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(61, 16, 56, 0.48);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.auth__control.is-up label,
.auth__control:focus-within label {
  top: 0.42rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(90, 12, 83, 0.72);
  transform: translateY(0);
}

.auth__field input {
  width: 100%;
  height: 3.15rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.85rem; /* kwartcirkel, fallback */
  background: var(--auth-field);
  color: #3d1038;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0 0.95rem;
  outline: none;
  transition: padding-top 0.18s ease;
}

.auth__control.is-up input,
.auth__control:focus-within input {
  padding-top: 0.72rem;
}

@keyframes auth-onauto {
  from { opacity: 1; }
}

.auth__field input:-webkit-autofill {
  animation: auth-onauto 0.01s;
}

.auth__field input::placeholder {
  color: transparent;
}

.auth__field input:focus {
  border-color: rgba(124, 17, 114, 0.65);
  box-shadow: 0 0 0 4px rgba(253, 196, 0, 0.28);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0 1.25rem;
  font-size: 0.92rem;
}

.auth__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111;
}

.auth__check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-purple);
}

.auth__link {
  color: var(--auth-purple);
  text-decoration: none;
  font-weight: 650;
}

.auth__legal {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0 0 1.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.auth__legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.auth__legal p {
  margin: 0;
}

.auth__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.auth__legal a {
  color: inherit;
  text-decoration: none;
}

.auth__legal a:hover {
  text-decoration: underline;
}

.auth__link:hover {
  text-decoration: underline;
}

.auth__submit {
  width: 100%;
  border: 0;
  border-radius: 0.9rem; /* kwartcirkel, fallback */
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #9a308c 0%, var(--auth-purple) 55%, var(--auth-purple-deep) 100%);
  box-shadow: 0 12px 32px -16px rgba(90, 12, 83, 0.85);
}

.auth__submit:hover {
  filter: brightness(1.06);
}

.auth__submit:focus-visible {
  outline: 2px solid var(--auth-gold);
  outline-offset: 3px;
}

.auth__pass {
  position: relative;
}

.auth__pass input {
  padding-right: 4.5rem;
}

.auth__reveal {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  touch-action: none;
  user-select: none;
}

.auth__reveal:focus-visible {
  outline: 2px solid var(--auth-gold);
  border-radius: 0.4rem;
}

/* Apple-achtige squircle. Zonder support blijft de border-radius hierboven. */
@supports (corner-shape: squircle) {
  .auth__panel {
    border-radius: 1.85rem;
    corner-shape: squircle;
  }

  .auth__field input,
  .auth__submit {
    border-radius: 1.05rem;
    corner-shape: squircle;
  }
}
