/*
 * Kwalee BI — Login page styles
 * Fullscreen dark page with radial yellow gradient, logo, and Google sign-in.
 */

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-neutral-950);
  background-image: radial-gradient(
    ellipse at 50% 60%,
    rgba(234, 179, 8, 0.12) 0%,
    rgba(234, 179, 8, 0.04) 35%,
    transparent 70%
  );
  color: var(--color-neutral-50);
  padding: var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle animated glow behind the logo */
.login-page::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(234, 179, 8, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Card container */
.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

/* Logo mark — yellow "K" */
.login-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-yellow-500), var(--color-yellow-600));
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--spacing-sm);
}

/* Brand name */
.login-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--color-neutral-50);
  letter-spacing: -0.01em;
}

.login-brand-accent {
  color: var(--color-yellow-500);
}

/* Subtitle */
.login-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-neutral-400);
  margin-top: calc(-1 * var(--spacing-sm));
}

/* Google sign-in button — standard branding */
.login-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 44px;
  background-color: var(--login-google-btn-bg);
  color: var(--login-google-btn-text);
  border: 1px solid var(--login-google-btn-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  margin-top: var(--spacing-md);
  user-select: none;
}

.login-google-btn:hover {
  background-color: var(--login-google-btn-bg-hover);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.login-google-btn:active {
  background-color: var(--login-google-btn-bg-active);
}

.login-google-btn:focus-visible {
  outline: 2px solid var(--color-sky-500);
  outline-offset: 2px;
}

/* Google "G" icon */
.login-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Domain notice */
.login-domain-notice {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
  margin-top: var(--spacing-xs);
}

/* Error banner */
.login-error-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  width: 100%;
  margin-top: calc(-1 * var(--spacing-xs));
}

.login-error-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-red-400);
  text-align: center;
  line-height: 1.4;
}

.login-error-retry {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-yellow-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s;
}

.login-error-retry:hover {
  color: var(--color-yellow-400);
}

/* Footer / version */
.login-footer {
  position: absolute;
  bottom: var(--spacing-xl);
  font-family: var(--font-code);
  font-size: 0.6875rem;
  color: var(--color-neutral-700);
  z-index: 1;
}

/* ─── Responsive (<768px) ─── */
@media (max-width: 767px) {
  .login-page {
    padding: var(--spacing-lg);
  }

  .login-logo-mark {
    width: 64px;
    height: 64px;
  }

  .login-brand {
    font-size: 1.375rem;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  .login-google-btn {
    width: 100%;
    justify-content: center;
  }
}
