/* The sign-in / create-account popup (js/signin.js). Self-contained colours, so it looks the same on
   the home page, /software and the web slicer. */
.signin {
  width: min(420px, calc(100% - 32px));
  padding: 32px 28px 24px;
  border-radius: 26px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: linear-gradient(160deg, rgb(24 32 58 / 0.96), rgb(12 16 30 / 0.97));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 30px 90px rgb(0 0 0 / 0.55);
  color: #f5f5f2;
  font-family: "Inter Tight", system-ui, sans-serif;
  text-align: center;
}
.signin[open] { animation: signin-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.signin::backdrop { background: rgb(4 6 14 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@keyframes signin-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .signin[open] { animation: none; } }

.signin__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.06); color: rgb(245 245 242 / 0.7);
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
.signin__close:hover { background: rgb(255 255 255 / 0.14); color: #fff; }

.signin__mark { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: rgb(77 125 255 / 0.16); color: #f5f5f2; }
.signin__mark svg { width: 30px; height: 18px; }
.signin__title { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.signin__lead { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: rgb(245 245 242 / 0.68); }

.signin__form { display: grid; gap: 12px; text-align: left; }
.signin__field { display: grid; gap: 6px; font-size: 13px; color: rgb(245 245 242 / 0.6); }
.signin__field[hidden], .signin__other[hidden], .signin__terms[hidden] { display: none; }
.signin__field input {
  padding: 13px 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(0 0 0 / 0.28); color: #f5f5f2; font: inherit; font-size: 16px; outline: none;
}
.signin__field input[name="code"] { letter-spacing: 0.35em; font-variant-numeric: tabular-nums; text-align: center; font-size: 20px; }
.signin__field input:focus { border-color: #4d7dff; box-shadow: 0 0 0 3px rgb(77 125 255 / 0.25); }

.signin__terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: rgb(245 245 242 / 0.65); cursor: pointer; }
.signin__terms input { margin-top: 2px; accent-color: #4d7dff; }
.signin__terms a, .signin__fine a { color: #9db4ff; }

.signin__info { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(245 245 242 / 0.8); }
.signin__error { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(240 160 80 / 0.12); border: 1px solid rgb(240 160 80 / 0.35); font-size: 13.5px; color: #ffd2a6; }

.signin__submit {
  margin-top: 4px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: #f5f5f2; color: #0b0f1a; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s;
}
.signin__submit:hover:not(:disabled) { background: #fff; }
.signin__submit:disabled { opacity: 0.6; cursor: default; }
.signin__submit:focus-visible, .signin__close:focus-visible { outline: 2px solid #f5f5f2; outline-offset: 3px; }

.signin__other { display: flex; justify-content: space-between; gap: 8px; }
.signin__other button { border: 0; background: none; padding: 4px 0; color: #9db4ff; font: inherit; font-size: 13.5px; cursor: pointer; }
.signin__other button:hover { color: #fff; }

.signin__fine { margin: 18px 0 0; font-size: 12.5px; color: rgb(245 245 242 / 0.45); }

/* Continue with Google (js/google-signin.js), then "or use your email" */
.signin__google { display: flex; justify-content: center; min-height: 44px; margin-bottom: 4px; }
.signin__google[hidden], .signin__or[hidden] { display: none; }
.signin__or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; font-size: 12.5px; color: rgb(245 245 242 / 0.45); }
.signin__or::before, .signin__or::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.12); }
