a {
  text-decoration: none;
}

body {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--lighter-primary) 70%);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column; 
  min-height: 100dvh;
  border-top: 40px solid #FFF;
  margin: 0;
}

.external-box {
  margin-top: auto;
}

.logo {
  float: left;
  padding-right: 1.5rem;
  padding-bottom: 1rem;
  height: calc(5rem + 4vw);
}

h1 {
  font-size: clamp(2rem, 1.2rem + 4vw, 3rem);
  font-weight: 800;
}

h1.registration {
  font-weight: 900;
}

ul li::marker {
  content: "👉 ";
}

.card {
  border-radius: 10px;
  box-shadow: 1px 3px 4px 0px var(--text);
}

.card h2 {
  font-size: 1rem;
  font-weight: 900;
}

input {
  padding: 0.6rem;
  border-radius: 0 5px 5px 0;
  border: none;
  width: 100%;
  caret-color: var(--text);
}

input::placeholder {
  font-weight: 400;
  color: var(--text);
}

.field {
  display: flex;
  margin-bottom: 0.2rem;
  border: 1px solid var(--text);
  border-radius: var(--border-radius);
}

.field img {
  border-right: 1px solid var(--text);
  border-radius: var(--border-radius);
  padding: 0 0.5rem;
  background-color: var(--lighter-primary);
}

.field:has(input[aria-invalid="true"]){
  margin-bottom: 0.2rem; 
  border: 2px solid var(--button); 
}

.field input[aria-invalid="true"]{
  background: url(assets/icons/circle-x.svg) no-repeat right 0.5rem center white;
}

.field:has(input[aria-invalid="true"]) img {
  border-right: 2px solid var(--button); 
} 

.error, .agreement-error {
  color: var(--button);
  font-size: 0.6rem;
  font-style: italic;
  font-weight: 600;
  text-align: right;
  margin: 0;
}

input[aria-invalid="true"].form-check-input {
  border: 2px solid var(--button); 
}

.wrapper {
  margin-bottom: 1.1rem;
}

.btn {
  box-shadow: var(--shadow-button);
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.btn-primary {
  background-color: var(--button);
  border: var(--text); 
  width: 100%;
}

.btn:hover, .btn:focus-visible {
  background-color: var(--text);
  color: var(--primary);
}

.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

footer {
  margin-top: auto;
  background-color: white;
  color: var(--accent);
  padding: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
}