.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

/* Badge */
.badge-private-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2px;
}

.badge-private {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 228px;
  min-height: 46px;
  padding: 8px 24px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #d6deff 0%, #c7d2ff 100%);
  border: 2px solid #b2c1f6;
  box-shadow: 0 3px 0 rgba(162, 177, 238, 0.95);
  color: #1b1b1b;
  font-family: 'Nunito', 'Kanit', sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  z-index: 0;
}

.badge-private::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 5px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

/* Booking title */
.booking-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.booking-title {
  font-family: 'Nunito', sans-serif;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  color: #16c879;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #139c60,
    0 2px 0 #139c60,
    0 4px 0 rgba(0, 0, 0, 0.15);
}

.booking-sparkle {
  font-size: 44px;
  line-height: 1;
  color: #ffd751;
  text-shadow: 0 1px 0 rgba(255, 193, 7, 0.25);
  transform: translateY(1px);
}

/* Form */
.logo-center {
  padding-top: 26px;
  padding-bottom: 6px;
}

.logo-image-hero {
  width: clamp(140px, 60vw, 250px);
}

.form-wrap {
  padding: 0 28px;
  flex: 1;
}

.form-note {
  max-width: 310px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #5c6d82;
  min-height: 38px;
}

.form-note.is-error {
  color: #b22c2c;
}

.form-note.is-success {
  color: #2e7d4e;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.form-row label {
  flex: 0 0 136px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
  text-align: right;
}

.form-row input {
  flex: 1 1 auto;
  max-width: 180px;
  height: 42px;
  background: #f1f1f1;
  border: 2px solid #6f6f6f;
  border-radius: 24px;
  padding: 0 16px;
  font-size: 14px;
  color: #111;
  outline: none;
  font-family: 'Nunito', sans-serif;
}

.form-row-date {
  align-items: center;
}

/* Login button */
.login-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 168px;
  height: 54px;
  padding: 0 20px 0 26px;
  background: linear-gradient(90deg, #2c57db 0 46%, #bfd0ff 46% 100%);
  color: #fff; border: none; border-radius: 30px;
  border: 3px solid #3f3f3f;
  cursor: pointer;
  margin: 0 auto;
  box-shadow: 0 4px 0 rgba(55, 55, 55, 0.45);
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: transform .1s;
}

.btn-login:active { transform: scale(0.97); }

.btn-login:disabled {
  cursor: wait;
}

.btn-login .arrow {
  background: #d9f000;
  color: #1f2e00;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
}

/* User card (step 2) */
.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0f4ff;
  border: 2px solid #b2c1f6;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 4px;
  box-shadow: 0 3px 0 rgba(162, 177, 238, 0.4);
}

.user-card-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.user-card-avatar > div,
.user-card-avatar svg {
  width: 100%;
  height: 100%;
}

.user-card-avatar svg { display: block; }

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #1b1b1b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-sub {
  font-size: 13px;
  color: #5c6d82;
  margin-top: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Register / login switch link */
.register-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #5c6d82;
  font-weight: 600;
}

.register-link a {
  color: #4d74f0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Back link */
.back-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #4d74f0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link:active {
  opacity: 0.7;
}

.court-bottom-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.court-bottom-art.court-photo {
  height: 248px;
  background: transparent;
  overflow: hidden;
}

.court-bottom-art.court-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.08);
  transform-origin: center bottom;
}

@media (max-width: 420px) {
  .logo-image-hero {
    width: min(220px, 64vw);
  }

  .form-wrap {
    padding: 0 22px;
  }

  .form-row label {
    flex-basis: 122px;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    gap: 6px;
    margin-bottom: 20px;
  }

  .badge-private {
    min-width: 208px;
    min-height: 42px;
    font-size: 14px;
  }

  .booking-title {
    font-size: 42px;
  }

  .booking-sparkle {
    font-size: 34px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .form-row label {
    flex: none;
    text-align: left;
    padding-left: 8px;
  }

  .form-row input {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  body.page-login {
    align-items: center;
    padding: 0;
    background:
      radial-gradient(circle at left top, rgba(141, 198, 63, 0.14), transparent 28%),
      radial-gradient(circle at right bottom, rgba(42, 109, 181, 0.12), transparent 22%),
      #f0ebe0;
  }

  .page-login .app {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(340px, 500px) minmax(460px, 620px);
    grid-template-rows: auto auto 1fr auto;
    justify-content: center;
    column-gap: clamp(48px, 6vw, 140px);
    padding-inline: clamp(32px, 4vw, 72px);
    border-radius: 0;
  }

  .page-login .logo-center {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    padding: 70px 0 8px;
  }

  .page-login .logo-image-hero {
    width: 360px;
  }

  .page-login .hero-copy {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 8px 0 0;
  }

  .page-login .badge-private-wrap,
  .page-login .booking-title-wrap {
    justify-content: flex-start;
  }

  .page-login .badge-private {
    min-width: 330px;
    min-height: 58px;
    padding: 10px 30px 12px;
    border-radius: 18px;
    font-size: 22px;
  }

  .page-login .badge-private::before {
    top: 8px;
    height: 22px;
  }

  .page-login .booking-title-wrap {
    gap: 22px;
  }

  .page-login .booking-title {
    font-size: 84px;
  }

  .page-login .booking-sparkle {
    font-size: 56px;
  }

  .page-login .form-wrap {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 88px 0 32px;
  }

  .page-login .form-row {
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 18px;
  }

  .page-login .form-row label {
    flex: 0 0 156px;
    font-size: 22px;
  }

  .page-login .form-row input {
    max-width: none;
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border-radius: 32px;
    font-size: 18px;
  }

  .page-login .form-note {
    max-width: none;
    width: 100%;
    min-height: 20px;
    margin-top: 10px;
    padding-left: 174px;
    text-align: left;
    font-size: 13px;
  }

  .page-login .login-actions {
    justify-content: flex-start;
    margin-top: 28px;
    padding-left: 174px;
  }

  .page-login .btn-login {
    min-width: 226px;
    height: 64px;
    padding: 0 24px 0 32px;
    font-size: 24px;
    border-radius: 34px;
  }

  .page-login .btn-login .arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .page-login .user-card {
    padding: 20px 24px;
    border-radius: 22px;
  }

  .page-login .user-card-avatar {
    width: 60px;
    height: 60px;
  }

  .page-login .user-card-avatar svg {
    width: 100%;
    height: 100%;
  }

  .page-login .user-card-name {
    font-size: 20px;
  }

  .page-login .user-card-sub {
    font-size: 15px;
  }

  .page-login .back-link {
    font-size: 15px;
    padding-left: 174px;
    text-align: left;
    margin-top: 14px;
  }

  .page-login .register-link {
    font-size: 14px;
    padding-left: 174px;
    text-align: left;
  }

  .page-login .court-bottom-art.court-photo {
    grid-column: 1 / -1;
    grid-row: 4;
    height: clamp(150px, 17vh, 210px);
  }

  .page-login .court-bottom-art.court-photo img {
    object-position: center 82%;
    transform: scale(1);
  }
}
