* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  font: 15px/1.5 system-ui, sans-serif;
  color: #251639;
  background: radial-gradient(ellipse at 85% 15%, #e3d4ff, transparent 55%), linear-gradient(125deg, #f8f4ff, #effaf8);
}
.wrap {
  width: min(100%, 450px);
  padding: clamp(24px, 6vw, 40px);
  background: #fff;
  border: 1px solid #e8dff4;
  border-radius: 24px;
  box-shadow: 0 20px 58px #34155b16;
}
.brand { display: inline-flex; font-size: 24px; font-weight: 800; }
.brand img { display: block; max-width: 168px; max-height: 45px; width: auto; height: auto; }
h1 { font-size: 31px; line-height: 1.15; margin: 24px 0 8px; }
p { color: #635470; margin: 0 0 20px; }
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input:not([type=checkbox]) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9cbe8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}
input[type=checkbox] { accent-color: #693cc6; }
button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  background: #693cc6;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #5429a8; }
a { color: #6036ad; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #7346c5; outline-offset: 3px; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 20px; }
.error, .notice { padding: 10px 12px; border-radius: 9px; }
.error { background: #fff0f0; color: #942b2b; }
.notice { background: #e9f8f3; color: #1c614f; }

.auth-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 22px;
  font-size: 14px;
}

form[data-auth-busy] button:disabled {
  cursor: wait;
}
form[data-auth-busy] button:disabled::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-end: .55em;
  vertical-align: -.15em;
  border: 2px solid #ffffff65;
  border-top-color: white;
  border-radius: 50%;
  animation: cc-auth-spin .75s linear infinite;
}
@keyframes cc-auth-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  form[data-auth-busy] button:disabled::before { animation: none; }
}

#cc-turnstile {
  display: flex;
  justify-content: center;
}

#cc-turnstile:not(:empty) {
  margin-top: 14px;
}

#cc-turnstile-status {
  margin: 10px 0 0;
  text-align: center;
  color: #942b2b;
}

@media (max-width: 600px) {
  body {
    min-height: 100svh;
    padding-top: 16px;
    padding-bottom: clamp(36px, 10svh, 80px);
  }

  .wrap {
    padding-block: 22px;
  }

  .auth-tools {
    margin-bottom: 16px;
  }

  h1 {
    margin-top: 18px;
  }
}
