/* rigspark.si/signin. Buttons follow Apple's "Sign in with Apple" and Google's sign-in branding guidelines:
   official marks, unaltered, black Apple button, white Google button with a grey outline. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
  background: #f7f6f3;
  color: var(--ink-900);
  font: 400 15px/1.5 var(--font-ui);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* A soft spark-coloured light behind the card. */
.glow {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 30%, rgba(255, 173, 0, 0.16), rgba(255, 173, 0, 0) 70%);
  pointer-events: none;
}
.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 44px 36px 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow:
    0 1px 2px rgba(29, 29, 31, 0.04),
    0 12px 32px -8px rgba(29, 29, 31, 0.12),
    0 40px 80px -24px rgba(29, 29, 31, 0.14);
  backdrop-filter: saturate(140%) blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.appicon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px -6px rgba(29, 29, 31, 0.25);
  margin-bottom: 22px;
}
h1 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.lede {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 15px;
}
.code-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-500);
}
.code {
  display: inline-block;
  white-space: nowrap;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 7px;
  background: #fff3d6;
  color: #8a4b00;
}
.notice {
  width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--verdict-noBg);
  color: var(--verdict-no);
  font-size: 13.5px;
}
.notice.ok {
  background: #eef7f0;
  color: #1f7a35;
}
.notice[hidden],
.code-note[hidden] {
  display: none;
}
.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.btn .idp {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn.apple .idp {
  width: 17px;
  height: 20px;
  margin-top: -3px; /* the Apple mark sits optically high */
}
.btn.apple {
  background: #000;
  color: #fff;
}
.btn.apple:hover {
  background: #1d1d1f;
}
.btn.google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}
.btn.google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.btn {
  position: relative;
}
.last {
  position: absolute;
  right: 14px;
  top: -9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  padding: 4px 8px;
  border-radius: 99px;
  background: #fff3d6;
  color: #7a4f00;
  border: 1px solid #ffd98a;
  box-shadow: 0 2px 6px -2px rgba(29, 29, 31, 0.2);
}
.btn.is-last {
  box-shadow: 0 0 0 3px rgba(255, 173, 0, 0.25);
}
.btn:active {
  transform: translateY(1px);
}
.rule {
  width: 100%;
  height: 1px;
  margin: 26px 0 18px;
  background: linear-gradient(90deg, rgba(29, 29, 31, 0), rgba(29, 29, 31, 0.1), rgba(29, 29, 31, 0));
}
.fine {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 320px;
}
.lock {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  opacity: 0.6;
}
.home {
  position: relative;
  font-size: 13px;
  color: var(--ink-500);
  text-decoration: none;
}
.home:hover {
  color: var(--ink-900);
}
:focus-visible {
  outline: 3px solid var(--spark-600);
  outline-offset: 3px;
}
@media (max-width: 420px) {
  .card {
    padding: 36px 22px 24px;
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
.btn[hidden] { display: none !important; }
