* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
  font-family:
    -apple-system, "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, sans-serif;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% 28%, rgba(37, 99, 235, 0.14), transparent 90%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.35) 0%, rgba(5, 7, 12, 0.55) 55%, rgba(5, 7, 12, 0.9) 100%);
}

.panel {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
}

.title-block {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78vw;
}

.logo {
  display: block;
  width: 100%;
  aspect-ratio: 1919 / 215;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.private-beta {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

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

.footer {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #fff;
}

.footer span {
  color: rgba(255, 255, 255, 0.25);
}

.app {
  width: 100%;
}

.field {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1c1917;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.field::placeholder {
  color: #57534e;
}

.field:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.field.has-error {
  border-color: #f87171;
}

.field.has-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.btn-primary {
  width: 100%;
  height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-primary:active:not(:disabled) {
  background: #1e40af;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.back-link {
  display: inline-block;
  padding: 0.5rem 0;
}

.back-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.error-text {
  color: #fca5a5;
  font-size: 0.75rem;
}

.mobile-block {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .app {
    display: none;
  }

  .mobile-block {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: #0a0a0a;
    color: #fff;
  }
}

.mobile-block svg {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-block h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-block p {
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.5;
}
