/* ======================================================
   Host Register Page
   ====================================================== */

.register-wrap{
  max-width: 560px;
}

/* Card layout */
.register-card{
  gap: 12px;
}

/* Form stack */
.register-form{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* AGB / Datenschutz */
.register-agree{
  display: grid;
  grid-template-columns: 1fr auto; /* Text links, Checkbox rechts */
  gap: 12px;
  align-items: center;

  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
}

.register-agree span{
  max-width: 420px;          /* erzwingt 2 Zeilen */
}

.register-agree input{
  margin: 0;                 /* kein Offset mehr */
  width: 16px;
  height: 16px;
}
.register-agree a{
  color: rgba(147,197,253,.95);
  text-decoration: none;
}
.register-agree a:hover{
  text-decoration: underline;
}

/* Error / Info */
.register-error{
  margin: 0;
  min-height: 20px;
  opacity: .9;
}

/* Bottom links */
.register-links{
  display: flex;
  justify-content: center;   
  align-items: center;
  margin-top: 6px;
}
.register-links a{
  color: var(--muted);
  text-decoration: none;
}
.register-links a span{
  text-decoration: underline;
}


/* ============================
   Custom Checkbox (Register)
============================ */

#rAgree{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;
  height: 18px;
  border-radius: 6px;

  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);

  display: grid;
  place-content: center;

  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

/* hover */
#rAgree:hover{
  border-color: var(--border2);
  background: rgba(255,255,255,.06);
}

/* checked state */
#rAgree:checked{
  background: rgba(91,124,250,.22);
  border-color: rgba(91,124,250,.55);
  box-shadow: 0 0 0 3px rgba(91,124,250,.22);
}

/* checkmark */
#rAgree::before{
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .12s ease;
  clip-path: polygon(
    14% 44%,
    0 65%,
    50% 100%,
    100% 16%,
    80% 0,
    43% 62%
  );
  background: rgba(232,236,248,.95);
}

/* show checkmark */
#rAgree:checked::before{
  transform: scale(1);
}

/* keyboard focus */
#rAgree:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(91,124,250,.35);
}