/* Biolume Hosting — the create-account pages (signup.html and australia-signup.html) and the sign-in page (signin.html).
   Loaded after styles.css, which supplies the colours, type, nav, buttons and footer. */

.su { position: relative; overflow-x: clip; padding: 56px 0 110px; }
.su-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; }
.su-copy { padding-top: 26px; }
.su-copy h1 { font-size: clamp(34px, 4.2vw, 52px); }
.su-copy .ticks { margin-top: 30px; }
.su-copy .fine a, .su-card a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.su-card { padding: 34px 34px 30px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, var(--surface), #101216);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 50px 110px -50px rgba(0, 0, 0, .95), 0 -20px 90px -40px rgba(255, 201, 95, .2); }
.su-card h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.su-card h2 + p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.su-form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label, .field .lab { font-size: 14.5px; font-weight: 500; color: #d6d8de; }
.field label i { font-style: normal; font-weight: 400; color: var(--dim); }
.field input:not([type=checkbox]), .field select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #0d0e12; color: var(--text);
  font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: #5d626d; }
.field input:hover, .field select:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 95, .16), 0 0 26px -6px rgba(255, 201, 95, .4); }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a5a9b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px; }
.field select:invalid { color: #5d626d; }
.field option { color: var(--text); background: #14161b; }
.field .tip { font-size: 13.5px; color: var(--dim); }
.field .err { display: none; font-size: 13.5px; color: var(--red); }
.field.is-bad .err { display: block; }
.field.is-bad .tip { display: none; }
.field.is-bad input:not([type=checkbox]), .field.is-bad select { border-color: var(--red); }

/* Username sits after the address it will sign in under */
.affix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: #0d0e12; transition: border-color .2s, box-shadow .2s; }
.affix:hover { border-color: rgba(255, 255, 255, .22); }
.affix:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 95, .16), 0 0 26px -6px rgba(255, 201, 95, .4); }
.affix > span { display: flex; align-items: center; padding: 0 0 0 14px; font: 14px var(--mono); color: var(--dim); white-space: nowrap; }
.affix input:not([type=checkbox]) { border: 0; background: none; padding-left: 2px; box-shadow: none; min-width: 0; font-family: var(--mono); font-size: 15px; }
.affix input:not([type=checkbox]):focus { box-shadow: none; }
.field.is-bad .affix { border-color: var(--red); }

.pw { position: relative; }
.pw input:not([type=checkbox]) { padding-right: 68px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.pw button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.meter i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .09); transition: background .25s; }
.meter[data-n="1"] i:nth-child(-n+1) { background: var(--red); }
.meter[data-n="2"] i:nth-child(-n+2) { background: #f4a44a; }
.meter[data-n="3"] i:nth-child(-n+3) { background: var(--gold); }
.meter[data-n="4"] i { background: var(--green); }

.agree { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.field.is-bad .agree { color: var(--red); }
.su-form .btn { width: 100%; margin-top: 4px; }
.su-form .btn[disabled] { opacity: .75; cursor: progress; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(17, 18, 20, .25); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.su-fail { display: none; padding: 12px 14px; border: 1px solid rgba(248, 113, 113, .4); border-radius: 10px; background: rgba(248, 113, 113, .08); font-size: 14.5px; color: #fca5a5; }
.su-fail.on { display: block; }
.su-foot { margin-top: 20px; font-size: 14px; color: var(--dim); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* After the form: the account is queued */
.su-done { display: none; text-align: center; padding: 14px 0 6px; }
.su-card.is-done .su-start { display: none; }
.su-card.is-done .su-done { display: block; }
.su-seal { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; }
/* A soft light around the seal: it swells once as the confirmation arrives, then settles to this */
.su-seal { position: relative; }
.su-seal::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 201, 95, 0) 40%, rgba(255, 201, 95, .3) 48%, rgba(255, 201, 95, .1) 72%, rgba(255, 201, 95, 0)); }
.su-seal svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.su-seal path { stroke-dasharray: 30; stroke-dashoffset: 0; }
.su-done h2 { font-size: 26px; }
.su-done p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.su-done p b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.su-queue { margin: 24px 0 0; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: left; font: 13.5px/1.7 var(--mono); color: var(--muted); }
.su-queue b { color: var(--gold); font-weight: 500; }
.su-done .fine { font-size: 14px; }
.su-done .btn { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .su-card.is-done .su-done { animation: rise .6s var(--ease) both; }
  .su-card.is-done .su-seal path { animation: draw .5s ease-out .25s both; }
  .su-card.is-done .su-seal::before { animation: seal-glow 2.2s cubic-bezier(.3, 0, .2, 1) .2s both; }
}
@keyframes draw { from { stroke-dashoffset: 30; } }
@keyframes seal-glow { 0% { opacity: 0; transform: scale(.55); } 40% { opacity: 1; transform: scale(1.06); } 100% { opacity: .5; transform: none; } }

@media (max-width: 980px) {
  .su { padding: 28px 0 80px; }
  .su-in { grid-template-columns: 1fr; gap: 36px; }
  .su-copy { padding-top: 0; }
  .su-card { max-width: 560px; }
}
@media (max-width: 680px) {
  .su-card { padding: 26px 20px 24px; border-radius: 18px; }
  .affix > span { font-size: 12.5px; padding-left: 12px; }
}

/* The sign-in page: one narrow card in the middle of the screen */
.si { display: flex; align-items: center; min-height: min(780px, calc(100svh - 150px)); }
.si .su-in { width: 100%; grid-template-columns: minmax(0, 430px); justify-content: center; }
.si .su-card { text-align: center; }
.si .su-card h1 { margin: 16px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.si .su-card h1 + p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.si-mark { display: block; width: 52px; height: 52px; margin: 0 auto; border-radius: 13px; }
.si .su-form { text-align: left; }
.si .su-foot { margin-top: 18px; }
.si .si-new { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.si .su-fail:focus { outline: 0; }
.si .su-card .su-foot:not(.si-new) a { color: var(--muted); text-decoration-color: rgba(255, 255, 255, .22); }
