/* ICCF account page: 6.3 Create account (join.html). ("Enter your code" moved into the public shell on 26 Sep 2026.)
   The base layer both pages share: reset, type, links, the ICCF logo and Back to top.
   Load order: foundations/fonts.css → foundations/tokens.css → this file → components/action-button.css
   → components/icon.css → the page's own css/pages/*.css.
   Colours and fonts come only from tokens.css. */

/* ---------- Reset ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--inter);
  font-size: 1rem;
  font-weight: var(--_font-weight---regular);
  line-height: 1.5;
  color: var(--color-text-muted);
  background-color: var(--color-bg);
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--color-bg);
  background: var(--color-primary);
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px 0;
  font-family: var(--geist);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: var(--_font-weight---bold);
}

@media screen and (max-width: 767px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0 0 15px 0;
  }
}

p {
  margin: 0;
  font-family: var(--inter);
  font-size: 1rem;
  font-weight: var(--_font-weight---regular);
}

@media screen and (max-width: 1199px) {
  p {
    font-size: 0.9375rem;
  }
}

span {
  display: inline-block;
}

a {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: 0.2s linear;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ---------- Form basics ---------- */

label {
  display: inline-block;
}

button,
input {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  text-transform: none;
  -webkit-appearance: button;
  appearance: button;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus {
  outline: none;
  box-shadow: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px transparent inset;
  -webkit-text-fill-color: var(--color-text) !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Required star after a label */
label.is_required::after {
  content: "*";
  margin-left: 2px;
  color: var(--color-danger);
}

/* ---------- Link with a line that grows on hover ---------- */

.line_link {
  position: relative;
}

.line_link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right bottom;
  transition: transform 0.4s;
}

.line_link:hover::after {
  transform: scaleX(1);
  transform-origin: left bottom;
}

/* ---------- Helpers ---------- */

/* Hidden until a script shows it (the author rules for span and a would override the hidden attribute) */
.is_hidden {
  display: none !important;
}

/* ---------- ICCF logo: the text wordmark used in the public header until the logo file arrives ---------- */

.iccf_logo {
  display: block;
  font-family: var(--geist);
  font-size: 40px;
  line-height: 1;
  font-weight: var(--_font-weight---bold);
  color: var(--color-text);
}

/* ---------- Back to top: a square in ICCF blue with an arrow; on hover it becomes a circle and the arrow runs ---------- */

.back_to_top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--color-primary);
  border-radius: var(--radius);
  transform: rotate(90deg);
  cursor: pointer;
}

.back_to_top__arrow {
  position: relative;
  width: 30px;
  height: 30px;
  transition: 0.5s;
}

.back_to_top__arrow::after {
  content: "";
  position: absolute;
  top: 1px;
  display: block;
  width: 20px;
  height: 15px;
  color: var(--color-bg);
  border-bottom: 2px solid;
  transform: translateX(4px);
}

.back_to_top__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  display: block;
  width: 8px;
  height: 8px;
  color: var(--color-bg);
  border-top: 2px solid;
  border-left: 2px solid;
  transform-origin: 0% 0%;
  transform: rotateZ(-45deg);
}

.back_to_top:hover {
  border-radius: 100%;
}

.back_to_top:hover .back_to_top__arrow {
  border: solid 2px var(--color-bg);
  border-radius: 100%;
  animation: back_to_top_ring 1s cubic-bezier(0, 0.6, 1, 0.4) 0s 1 normal none running;
}

.back_to_top:hover .back_to_top__arrow::before {
  animation: back_to_top_head 1s cubic-bezier(0, 0.6, 1, 0.4) 0.5s infinite normal none running;
}

.back_to_top:hover .back_to_top__arrow::after {
  top: -1px;
  animation: back_to_top_line 1s cubic-bezier(0, 0.6, 1, 0.4) 0.5s infinite normal none running;
}

@media screen and (max-width: 991px) {
  .back_to_top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
}

@keyframes back_to_top_ring {
  0% {
    border: 2px solid var(--color-bg);
  }

  100% {
    border: 2px solid var(--color-bg);
    border-radius: 50%;
  }
}

@keyframes back_to_top_head {
  0% {
    transform: rotateZ(-45deg) translateY(30px) translateX(30px);
  }

  100% {
    transform: rotateZ(-45deg) translateY(-35px) translateX(-35px);
  }
}

@keyframes back_to_top_line {
  0% {
    transform: translateX(45px);
  }

  100% {
    transform: translateX(-44px);
  }
}
