:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f5f5f5;
  font-synthesis: none;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #050505;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #050505;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.background,
.background > * {
  position: fixed;
  pointer-events: none;
}

.background {
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #050505;
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  inset: 0;
}

.background::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%);
}

.background::after {
  background: radial-gradient(ellipse at center, transparent 10%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.86) 100%);
}

.background__canvas {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.background__glow {
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle 260px at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018) 42%, transparent 72%);
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-cluster {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 38px;
}

.signin-card {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.68);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.identity-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.identity-mark {
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.identity-mark--personal {
  width: 42px;
  height: 42px;
}

.identity-mark--organization {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.google-signin {
  min-width: 210px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #f3f3f3;
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.google-signin__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.google-signin:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.google-signin:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 4px;
}

.portfolio-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 6vw, 30px);
}

.portfolio-marks img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  opacity: 0;
  filter: invert(1);
  transform: translateY(12px) scale(0.78);
  animation: mark-enter 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(420ms + var(--mark-index) * 95ms);
}

.portfolio-marks img:nth-child(2),
.portfolio-marks img:nth-child(4) {
  width: 27px;
  height: 27px;
}

@keyframes mark-enter {
  to {
    opacity: 0.48;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px;
  }

  .login-cluster {
    gap: 34px;
  }

  .signin-card {
    padding: 30px 24px;
  }

  .portfolio-marks {
    gap: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .portfolio-marks img {
    opacity: 0.48;
    transform: none;
  }
}
