/* Apple-inspired auth surfaces — INTERSPORT Partner registration */

:root {
  --apple-auth-ink: #1d1d1f;
  --apple-auth-muted: #6e6e73;
  --apple-auth-line: rgba(0, 0, 0, 0.08);
  --apple-auth-fill: #f5f5f7;
  --apple-auth-blue: #164196;
  --apple-auth-blue-deep: #0f2f70;
  --apple-auth-radius: 12px;
  --apple-auth-font: "Manrope", "Public Sans", sans-serif;
}

/* —— Login CTA: clean Apple secondary action —— */
.authentication-wrapper .links a[href="/register"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  width: 100%;
  border-radius: 980px;
  border: 1px solid var(--apple-auth-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--apple-auth-blue);
  font-family: var(--apple-auth-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.authentication-wrapper .links a[href="/register"]:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--apple-auth-blue) 28%, transparent);
  color: var(--apple-auth-blue-deep);
  transform: translateY(-1px);
}

/* —— Register page shell —— */
body.auth-page-register {
  font-family: var(--apple-auth-font);
  color: var(--apple-auth-ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(22, 65, 150, 0.14), transparent 55%),
    radial-gradient(900px 480px at 100% 20%, rgba(227, 6, 19, 0.06), transparent 50%),
    linear-gradient(180deg, #fbfbfd 0%, #eef1f6 100%);
  min-height: 100vh;
}

body.auth-page-register .container-xxl {
  max-width: 720px;
}

body.auth-page-register .authentication-wrapper.authentication-basic {
  overflow: visible;
  padding-block: 2.5rem 3.5rem;
}

body.auth-page-register .authentication-wrapper.authentication-basic .authentication-inner {
  max-width: 640px;
}

body.auth-page-register .authentication-wrapper.authentication-basic .authentication-inner:before,
body.auth-page-register .authentication-wrapper.authentication-basic .authentication-inner:after {
  display: none;
}

body.auth-page-register .authentication-wrapper .card {
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 50px rgba(22, 40, 80, 0.08),
    0 2px 8px rgba(22, 40, 80, 0.04);
  animation: apple-auth-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-page-register .authentication-wrapper .card-body {
  padding: 2.25rem 2rem 2rem;
}

@media (min-width: 576px) {
  body.auth-page-register .authentication-wrapper .card-body {
    padding: 2.75rem 2.75rem 2.25rem;
  }
}

body.auth-page-register .app-brand {
  margin-bottom: 0.5rem !important;
}

body.auth-page-register .authentication-wrapper .app-brand-logo-img {
  max-width: 220px;
  animation: apple-auth-fade 0.9s ease 0.05s both;
}

body.auth-page-register .auth-brand-sub {
  font-family: var(--apple-auth-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--apple-auth-muted);
  animation: apple-auth-fade 0.9s ease 0.15s both;
}

/* —— Content —— */
.apple-auth__intro {
  text-align: center;
  margin: 0.5rem 0 1.75rem;
  animation: apple-auth-fade 0.8s ease 0.2s both;
}

.apple-auth__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--apple-auth-ink);
}

.apple-auth__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--apple-auth-muted);
  font-weight: 500;
}

.apple-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.apple-auth__section {
  padding-top: 0.25rem;
  animation: apple-auth-fade 0.75s ease both;
}

.apple-auth__section:nth-of-type(1) { animation-delay: 0.22s; }
.apple-auth__section:nth-of-type(2) { animation-delay: 0.3s; }
.apple-auth__section:nth-of-type(3) { animation-delay: 0.38s; }
.apple-auth__section:nth-of-type(4) { animation-delay: 0.46s; }

.apple-auth__section-title {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-auth-muted);
}

.apple-auth__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1rem;
}

@media (min-width: 576px) {
  .apple-auth__grid {
    grid-template-columns: 1fr 1fr;
  }

  .apple-auth__field--full {
    grid-column: 1 / -1;
  }
}

.apple-auth__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-auth-ink);
  letter-spacing: -0.01em;
}

.apple-auth__optional {
  color: var(--apple-auth-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.apple-auth__type-hints {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--apple-auth-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.apple-auth__type-hints li + li {
  margin-top: 0.35rem;
}

.apple-auth__type-hints strong {
  color: var(--apple-auth-ink);
  font-weight: 600;
}

.apple-auth__field input,
.apple-auth__field select,
.apple-auth__password .form-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--apple-auth-line);
  border-radius: var(--apple-auth-radius);
  background: var(--apple-auth-fill);
  color: var(--apple-auth-ink);
  font-family: var(--apple-auth-font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apple-auth__field input::placeholder,
.apple-auth__password .form-control::placeholder {
  color: #a1a1a6;
  font-weight: 500;
}

.apple-auth__field input:focus,
.apple-auth__field select:focus,
.apple-auth__password .form-control:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--apple-auth-blue) 55%, #c7c7cc);
  box-shadow: 0 0 0 4px rgba(22, 65, 150, 0.14);
}

.apple-auth__password {
  border-radius: var(--apple-auth-radius);
  overflow: hidden;
  background: var(--apple-auth-fill);
  border: 1px solid var(--apple-auth-line);
}

.apple-auth__password .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.apple-auth__password .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.apple-auth__password:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--apple-auth-blue) 55%, #c7c7cc);
  box-shadow: 0 0 0 4px rgba(22, 65, 150, 0.14);
}

.apple-auth__password .input-group-text {
  border: 0;
  background: transparent;
  color: var(--apple-auth-muted);
}

.apple-auth__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
  animation: apple-auth-fade 0.75s ease 0.52s both;
}

.apple-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--apple-auth-ink);
  cursor: pointer;
}

.apple-auth__check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: var(--apple-auth-blue);
  border-radius: 4px;
}

.apple-auth__submit {
  display: block;
  width: 100%;
  min-height: 3.15rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 980px;
  background: var(--apple-auth-blue);
  color: #fff;
  font-family: var(--apple-auth-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(22, 65, 150, 0.22);
  animation: apple-auth-fade 0.75s ease 0.58s both;
}

.apple-auth__submit:hover {
  background: var(--apple-auth-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 65, 150, 0.28);
}

.apple-auth__submit:active {
  transform: translateY(0);
}

.apple-auth__footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--apple-auth-muted);
  animation: apple-auth-fade 0.75s ease 0.64s both;
}

.apple-auth__footer a {
  color: var(--apple-auth-blue);
  font-weight: 700;
  text-decoration: none;
}

.apple-auth__footer a:hover {
  color: var(--brand-secondary, #e30613);
}

@keyframes apple-auth-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes apple-auth-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page-register .authentication-wrapper .card,
  body.auth-page-register .authentication-wrapper .app-brand-logo-img,
  body.auth-page-register .auth-brand-sub,
  .apple-auth__intro,
  .apple-auth__section,
  .apple-auth__legal,
  .apple-auth__submit,
  .apple-auth__footer {
    animation: none;
  }

  .authentication-wrapper .links a[href="/register"],
  .apple-auth__submit {
    transition: none;
  }
}
