:root {
  --blue-900: #0b1b5b;
  --blue-800: #0f2fa5;
  --blue-700: #1b4be0;
  --blue-500: #3aa0ff;
  --ink: #0f172a;
  --glass: rgba(255, 255, 255, 0.18);
  --stroke: rgba(255, 255, 255, 0.28);
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 0;
  color: #0f172a;
  background: radial-gradient(circle at top, #1733aa, #0a1a59 65%, #060f38);
  min-height: 100vh;
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(58,160,255,0.6), rgba(27,75,224,0.2));
  box-shadow: 0 30px 120px rgba(27, 75, 224, 0.35);
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  right: 8%;
  animation-delay: 0s;
}

.orb-2 {
  width: 260px;
  height: 260px;
  bottom: -80px;
  left: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  top: 20%;
  left: -60px;
  animation-delay: 4s;
}

.grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0, rgba(255,255,255,0.06) 1px, transparent 2px),
    linear-gradient(90deg, transparent 0, rgba(255,255,255,0.05) 1px, transparent 2px);
  background-size: 80px 80px;
  opacity: 0.35;
  transform: perspective(800px) rotateX(55deg);
  transform-origin: top;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  z-index: 2;
}

.login-card {
  width: min(440px, 92vw);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  animation: lift 0.9s ease;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(233,242,255,0.9));
  border: 1px solid rgba(15, 47, 165, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.brand-sep {
  width: 1px;
  height: 28px;
  background: rgba(15, 23, 42, 0.2);
}

.logo {
  height: 34px;
  width: auto;
}

.logo.hotelink {
  filter: none;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 47, 165, 0.12);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.logo.counterpoint {
  height: 40px;
}

.login-card h1 {
  margin: 8px 0 6px;
  font-size: 28px;
  letter-spacing: 0.6px;
  text-align: center;
  color: #0b1b5b;
}

.login-card p {
  margin: 0 0 18px;
  color: #475569;
  text-align: center;
}

form {
  display: grid;
  gap: 12px;
}

[hidden] {
  display: none !important;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #475569;
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7deea;
  font-size: 14px;
  background: #ffffff;
}

input:focus {
  outline: none;
  border-color: #1b4be0;
  box-shadow: 0 0 0 3px rgba(27, 75, 224, 0.15);
}

button {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, #0f2fa5, #1b4be0);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 47, 165, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
  position: relative;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 47, 165, 0.32);
}

button.is-loading {
  cursor: wait;
  opacity: 0.9;
  padding-right: 44px;
}

button.is-loading::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.error {
  color: #b91c1c;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

@keyframes lift {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@media (max-width: 600px) {
  .logo.hotelink { padding: 4px 8px; }
  .logo { height: 34px; }
  .logo.counterpoint { height: 40px; }
}
