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

body.community-page {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #08111f;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.community-layout {
  display: flex;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  background: #08111f;
  overflow: hidden;
}

.hero-area,
.form-area {
  min-height: 100svh;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.hero-area {
  position: relative;
  flex: 0 0 60%;
  overflow: hidden;
  background: #101827;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.hero-area img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.18), rgba(3, 6, 12, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 38%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-pill {
  position: absolute;
  top: 30px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.72));
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(2, 8, 18, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.home-pill:hover {
  color: #ffffff;
}

.home-pill i {
  font-size: 13px;
}

.hero-copy {
  position: absolute;
  left: 48px;
  bottom: 44px;
  max-width: 360px;
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(2, 8, 18, 0.36);
}

.hero-title {
  display: grid;
  gap: 0;
  margin: 0;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-title h1,
.hero-title h2 {
  margin: 0;
  font: inherit;
}

.hero-title h2 {
  display: block;
  font-size: clamp(34px, 3.1vw, 44px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.08);
  text-shadow:
    0 0 0.5px rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(2, 8, 18, 0.34);
}

.form-area {
  flex: 0 0 40%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 145, 47, 0.09), transparent 32%),
    linear-gradient(180deg, #0f1726 0%, #0b1120 100%);
}

.form-card {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: clamp(36px, 4vh, 48px) clamp(32px, 3vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(14, 20, 33, 0.98), rgba(8, 13, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.form-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.form-description {
  margin: 10px 0 22px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 14px;
  line-height: 1.55;
}

.community-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 700;
}

.community-form span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.community-form span i {
  font-size: 14px;
}

.community-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-form input::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

.community-form input:focus {
  outline: none;
  border-color: rgba(255, 145, 47, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 145, 47, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 181, 96, 0.92);
  font-size: 16px;
  cursor: pointer;
}

.password-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.password-rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.password-rules li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 3px;
  border: 2px solid rgba(255, 181, 96, 0.72);
  border-radius: 999px;
}

.login-footer {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.login-footer a {
  color: rgba(255, 181, 96, 0.95);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.login-footer a:hover {
  color: #ffffff;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb347 0%, #ff980f 52%, #ff7a00 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 34px rgba(255, 152, 15, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(255, 152, 15, 0.28);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 14px 28px rgba(255, 152, 15, 0.2);
}

@media (max-width: 1180px) {
  .hero-copy {
    left: 36px;
    bottom: 32px;
  }

  .hero-title h2 {
    font-size: clamp(30px, 4.2vw, 38px);
  }

  .form-card {
    padding: clamp(30px, 3.5vh, 40px) clamp(26px, 2.5vw, 36px);
  }
}

@media (max-width: 900px) {
  .hero-area {
    flex-basis: 58%;
  }

  .form-area {
    flex-basis: 42%;
    padding: 0;
    min-height: 0;
  }

  .hero-copy {
    left: 30px;
    bottom: 28px;
  }

  .hero-title h2 {
    font-size: clamp(28px, 4.8vw, 34px);
  }

  .form-card {
    padding: 34px 24px;
    border-radius: 0;
    min-height: 0;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  .community-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  .hero-area {
    flex: 0 0 38%;
    width: 100%;
    min-height: 38dvh;
    max-height: 38dvh;
    height: 38dvh;
    display: block;
  }

  .hero-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .form-area {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(255, 145, 47, 0.06), transparent 34%),
      linear-gradient(180deg, #0f1726 0%, #0b1120 100%);
  }

  .form-card {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 18px 22px 20px;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.basketoyna-auth-page--register .community-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 35svh 65svh;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
  }

  body.basketoyna-auth-page--register .hero-area {
    min-height: 0;
    height: 100%;
  }

  body.basketoyna-auth-page--register .hero-area img {
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.82) contrast(1.04) saturate(0.94);
  }

  body.basketoyna-auth-page--register .hero-area::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 36%;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 15, 0.12) 24%, rgba(4, 8, 15, 0.78) 100%);
    pointer-events: none;
  }

  body.basketoyna-auth-page--register .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 6, 12, 0.12), rgba(2, 6, 12, 0.64)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 38%, rgba(0, 0, 0, 0.18));
  }

  body.basketoyna-auth-page--register .form-area {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    margin-top: -18px;
    padding: 18px 0 0;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(11, 17, 32, 0) 0%, rgba(11, 17, 32, 0.9) 10%, #0b1120 100%);
  }

  body.basketoyna-auth-page--register .form-card {
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
  }

  body.basketoyna-auth-page--register .auth-portal {
    padding: 14px 24px 16px;
    box-shadow: none;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background:
      linear-gradient(180deg, rgba(12, 18, 29, 0.98), rgba(7, 12, 22, 0.98));
  }

  body.basketoyna-auth-page--register .auth-portal__header {
    gap: 8px;
    margin-bottom: 6px;
  }

  body.basketoyna-auth-page--register .auth-portal__title {
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1.02;
  }

  body.basketoyna-auth-page--register .auth-portal__copy {
    font-size: 14px;
    line-height: 1.42;
  }

  body.basketoyna-auth-page--register .auth-mobile-journey {
    display: none;
  }

  body.basketoyna-auth-page--register .auth-progress {
    gap: 6px;
    margin-bottom: 6px;
  }

  body.basketoyna-auth-page--register .auth-form {
    display: grid;
    gap: 12px;
    min-height: 0;
  }

  body.basketoyna-auth-page--register .auth-step {
    display: grid;
    gap: 10px;
    min-height: 0;
  }

  body.basketoyna-auth-page--register .auth-step__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-content: start;
    justify-content: stretch;
    padding-block: 0;
  }

  body.basketoyna-auth-page--register .auth-step__body > .auth-field:first-child,
  body.basketoyna-auth-page--register .auth-step__body > .auth-password-rules,
  body.basketoyna-auth-page--register .auth-step__body > .auth-check {
    grid-column: 1 / -1;
  }

  body.basketoyna-auth-page--register .auth-step__footer {
    gap: 6px;
    margin-top: 0;
    padding-top: 0;
  }

  body.basketoyna-auth-page--register .auth-actions {
    margin-top: 0;
  }

  body.basketoyna-auth-page--register .auth-field {
    gap: 5px;
  }

  body.basketoyna-auth-page--register .auth-field label {
    font-size: 13px;
  }

  body.basketoyna-auth-page--register .auth-input {
    min-height: 52px;
    border-radius: 14px;
    font-size: 15px;
  }

  body.basketoyna-auth-page--register .auth-password-rules li {
    padding: 10px 11px;
    font-size: 12px;
    line-height: 1.2;
  }

  body.basketoyna-auth-page--register .auth-check {
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.basketoyna-auth-page--register .auth-actions .primary-button {
    min-height: 52px;
    font-size: 15px;
    border-radius: 14px;
  }

  body.basketoyna-auth-page--register .auth-footer {
    margin-top: 0;
  }

  body.basketoyna-auth-page--register .home-pill {
    top: 18px;
    left: 18px;
    min-height: 40px;
    padding: 0 16px;
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.68));
    box-shadow: 0 16px 34px rgba(2, 8, 18, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body.basketoyna-auth-page--register .community-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
  }

  body.basketoyna-auth-page--register .hero-area {
    flex: 0 0 58%;
    min-height: 0;
    height: 100%;
  }

  body.basketoyna-auth-page--register .hero-area img {
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.84) contrast(1.04) saturate(0.94);
  }

  body.basketoyna-auth-page--register .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 6, 12, 0.14), rgba(2, 6, 12, 0.62)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 40%, rgba(0, 0, 0, 0.18));
  }

  body.basketoyna-auth-page--register .basketoyna-auth-hero__panel {
    left: 20px;
    right: 20px;
    bottom: 14px;
    width: auto;
    max-width: 360px;
    gap: 6px;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-hero__title {
    font-size: clamp(20px, 3vw, 28px);
    line-height: 0.96;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-hero__copy {
    font-size: 11px;
    line-height: 1.3;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-hero__stats {
    gap: 6px;
    margin-top: 4px;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-step-card {
    min-height: 88px;
    padding: 10px 10px 10px 10px;
    border-radius: 16px;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-step-card__index {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 14px;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-step-card__content strong {
    font-size: 12px;
    line-height: 1.06;
  }

  body.basketoyna-auth-page--register .basketoyna-auth-step-card__content span {
    font-size: 10px;
    line-height: 1.22;
  }

  body.basketoyna-auth-page--register .form-area {
    flex: 0 0 42%;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 8px 10px 8px 8px;
    overflow: hidden;
  }

  body.basketoyna-auth-page--register .form-card {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px 12px 12px;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

@media (max-width: 760px) {
  body.basketoyna-auth-page--register .hero-area {
    display: none;
  }

  body.basketoyna-auth-page--register .community-layout {
    flex-direction: column;
    min-height: 100svh;
    height: auto;
    overflow-y: auto;
  }

  body.basketoyna-auth-page--register .form-area {
    flex: 1 1 auto;
    width: 100%;
    min-height: auto;
    height: auto;
    display: flex;
    justify-content: center;
    padding: 12px 12px 18px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  body.basketoyna-auth-page--register .form-card {
    min-height: auto;
    height: auto;
    width: min(100%, 460px);
    max-width: 460px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: visible;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body.basketoyna-auth-page--register .community-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
    min-height: 100svh !important;
    height: 100svh !important;
    overflow: hidden !important;
  }

  body.basketoyna-auth-page--register .hero-area {
    display: block !important;
    flex: 0 0 58% !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  body.basketoyna-auth-page--register .hero-copy {
    left: 20px;
    bottom: 16px;
    max-width: 290px;
  }

  body.basketoyna-auth-page--register .hero-title h2 {
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 0.92;
  }

  body.basketoyna-auth-page--register .hero-copy p {
    font-size: 10px;
    line-height: 1.22;
  }

  body.basketoyna-auth-page--register .form-area {
    flex: 0 0 42% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 8px 10px 8px 8px !important;
    overflow: hidden !important;
  }

  body.basketoyna-auth-page--register .form-card {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 10px 10px !important;
  }

  body.basketoyna-auth-page--register .form-card h3 {
    font-size: 20px;
    line-height: 1.02;
  }

  body.basketoyna-auth-page--register .form-card p {
    font-size: 10px;
    line-height: 1.28;
  }
}
