*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #000;
  color: #fafafa;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(0, 255, 102, 0.08), transparent 45%),
    #000;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  background: #0a0a0a;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-label {
  margin: 0 0 1.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00ff66;
}

.login-tagline {
  color: #71717a;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.login-brand {
  margin: 0 0 0.75rem;
  line-height: 0;
}

.login-brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
}

.login-subtitle {
  margin: 0.35rem 0 1.75rem;
  font-size: 0.9rem;
  color: #71717a;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1aa;
}

.field input {
  width: 100%;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  background: #000;
  color: #fafafa;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.field input:focus {
  outline: none;
  border-color: #00ff66;
}

.login-error {
  margin: 0;
  font-size: 0.8rem;
  color: #f87171;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary {
  background: #00ff66;
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn-primary.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  pointer-events: none;
  cursor: wait;
  opacity: 1;
  animation: btn-glow 1.6s ease-in-out infinite;
}

.btn-primary.is-loading:disabled {
  opacity: 1;
}

.btn-loader {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-loader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #000;
  border-right-color: rgba(0, 0, 0, 0.35);
  animation: btn-spin 0.9s linear infinite;
}

.btn-loader-orbit-reverse {
  inset: 0.15rem;
  border-top-color: rgba(0, 0, 0, 0.25);
  border-right-color: #000;
  animation-direction: reverse;
  animation-duration: 1.2s;
}

.btn-loader-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.3rem;
  height: 0.3rem;
  margin: -0.15rem 0 0 -0.15rem;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  animation: btn-pulse 1.1s ease-in-out infinite;
}

.btn-loader-label {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #000;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes btn-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes btn-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.35);
  }
  50% {
    box-shadow: 0 0 20px 2px rgba(0, 255, 102, 0.45);
  }
}
