/* 6.3 Create account (join.html). Loads after css/shell/account.css.
   Layout: the page is split in half. Left: ICCF dark blue with a faint diagonal pattern and a photo collage
   (hidden on phones). Right: the ICCF logo, the heading, then the form (Google and Facebook sign-up removed 30 Sep 2026, Open question #12). */

/* ---------- Split ---------- */

.join_split {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg-page);
}

.join_split__media {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 50%;
  min-height: 100vh;
  background: url("../../images/join-pattern.png") no-repeat center center / cover, var(--color-primary-dark);
}

/* Collage: one image of four rounded photos. The blue ribbon crossing its top-right corner is drawn here. */
.join_split__collage {
  position: relative;
  left: 180px;
  overflow: hidden;
}

.join_split__collage::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(100% - 333px);
  right: -111px;
  width: 439px;
  height: 224px;
  background: var(--color-primary);
  border-radius: 112px;
  transform: rotate(-40deg);
  mix-blend-mode: overlay;
}

.join_split__panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin-left: 180px;
}

.join_split__inner {
  max-width: calc(100% - 200px);
}

@media screen and (max-width: 1599px) {
  .join_split__collage {
    left: 100px;
  }

  .join_split__panel {
    margin-left: 100px;
  }

  .join_split__inner {
    max-width: calc(100% - 110px);
  }
}

@media screen and (max-width: 1499px) {
  .join_split__collage::before {
    top: -134px;
    width: 642px;
    height: 187px;
    transform: rotate(-45deg);
  }
}

@media screen and (max-width: 1399px) {
  .join_split__panel {
    width: 60%;
  }
}

@media screen and (max-width: 1199px) {
  .join_split__collage {
    left: 50px;
  }

  .join_split__collage::before {
    inset: auto -56% calc(100% - 13px) auto;
    width: 537px;
    height: 126px;
  }

  .join_split__panel {
    margin-left: 50px;
  }

  .join_split__inner {
    max-width: 100%;
  }
}

@media screen and (max-width: 991px) {
  .join_split__collage {
    left: 0;
    padding: 0 20px;
  }

  .join_split__collage::before {
    display: none;
  }

  .join_split__panel {
    margin-left: 0;
  }
}

/* Phones: the photo half is hidden and the form fills the width */
@media screen and (max-width: 767px) {
  .join_split__media {
    display: none;
  }

  .join_split__panel {
    width: 100%;
    align-items: flex-start;
  }
}

/* ---------- Form box ---------- */

.join_box {
  width: 100%;
  margin: 38px 0;
  overflow: hidden;
  border-radius: 10px;
}

@media screen and (max-width: 1199px) {
  .join_box {
    margin: 50px 0;
    padding: 0 30px;
  }
}

@media screen and (max-width: 991px) {
  .join_box {
    padding: 0 20px;
  }
}

@media screen and (max-width: 575px) {
  .join_box {
    padding: 0 16px;
  }
}

.join_logo {
  max-width: 290px;
}

@media screen and (max-width: 991px) {
  .join_logo {
    max-width: 250px;
  }
}

@media screen and (max-width: 767px) {
  .join_logo {
    max-width: 200px;
  }
}

@media screen and (max-width: 424px) {
  .join_logo {
    max-width: 250px;
  }
}

/* ---------- Heading: "Register" with a sky-blue bar under it, then the h1 ---------- */

.join_heading {
  margin-top: 35px;
  margin-bottom: 40px;
  text-align: left;
}

@media screen and (max-width: 1199px) {
  .join_heading {
    margin-top: 40px;
  }
}

@media screen and (max-width: 991px) {
  .join_heading {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

.join_heading__eyebrow {
  position: relative;
  z-index: 1;
  max-width: max-content;
  margin: 0;
  padding-bottom: 10px;
  font-family: var(--geist);
  font-size: 1.25rem;
  font-weight: var(--_font-weight---regular);
  line-height: 1.3;
  color: var(--color-text);
  text-transform: capitalize;
}

.join_heading__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  z-index: -1;
  width: 100%;
  height: 4px;
  background-color: var(--color-sky);
}

@media screen and (max-width: 991px) {
  .join_heading__eyebrow {
    font-size: 1.125rem;
  }
}

.join_heading__title {
  max-width: 750px;
  margin-right: auto;
  margin-left: 0;
  font-size: clamp(1.375rem, 1rem + 0.8vw, 2.5rem);
  text-transform: capitalize;
}

/* ---------- Fields: two columns (First name | Last name, Password | Confirm password), one on small phones ---------- */

.join_fields {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.join_fields > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

@media screen and (min-width: 425px) {
  .join_fields > .is_half {
    width: 50%;
  }
}

.join_field {
  margin-bottom: 30px;
}

@media screen and (max-width: 991px) {
  .join_field {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .join_field {
    margin-bottom: 15px;
  }
}

.join_label {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* White box, no border until focus; 48px or taller */
.join_input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 20px 23px;
  font-weight: var(--_font-weight---regular);
  line-height: 1;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid transparent;
  border-radius: 5px;
  outline: none;
}

.join_input:focus {
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

@media screen and (max-width: 991px) {
  .join_input {
    padding: 16px;
  }
}

/* ---------- Agree row: checkbox, then "I agree with the Privacy Policy and Terms of Use" ---------- */

.join_agree {
  display: flex;
  align-items: center;
}

.join_agree__box {
  display: flex;
  flex-wrap: wrap;
}

/* 20px box with a 2px border at 3:1 or more; filled ICCF blue when ticked */
.join_agree__input {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: transparent;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  print-color-adjust: exact;
  cursor: pointer;
}

.join_agree__input:active {
  filter: brightness(90%);
}

.join_agree__input:focus {
  outline: 0;
}

.join_agree__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.join_agree__input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.join_agree__text {
  padding: 0 0.5rem;
  color: var(--color-text);
}

/* The label is 48px tall, so the tap area meets 48px (the box alone is 20px) */
.join_agree__label {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
}

/* ---------- Links in the form: ICCF blue, underlined so they don't rely on colour alone ---------- */

.join_link,
.join_link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* A POST action written as a link (Log out on Accept a changed policy) */
.join_link.is_button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media screen and (max-width: 424px) {
  .join_submit {
    line-height: 26px;
  }
}

.join_login {
  text-align: center;
}

.join_login__text {
  color: var(--color-text);
}

/* Online sign-up off (DR-25, 5 Oct 2026): the message shown in place of the form, in the info colours */
.join_closed {
  margin: 0 0 24px;
  padding: 16px;
  background-color: var(--color-primary-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius, 6px);
}

.join_closed__title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--color-text);
}

.join_closed__text {
  margin: 0;
  color: var(--color-text);
}
