/*
 * Sign-in page styles. Loaded only by the auth layout (app/views/layouts/auth),
 * so none of this ships with the main app. Self-contained: it pulls in the C3D
 * UI Kit and the self-hosted Inter font it relies on.
 */
@import url("/assets/c3d-ui-kit.min-e45ab0c8.css");

@font-face {
  font-display: swap;
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/InterVariable-1f021a24.woff2") format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Inter Variable';
  font-style: italic;
  font-weight: 100 900;
  src: url("/assets/InterVariable-Italic-7c529059.woff2") format('woff2');
}

body {
  font-family: var(--font-family-primary);
}

.auth-page {
  align-items: center;
  background:
    radial-gradient(60rem 60rem at 50% -20%,
      color-mix(in srgb, var(--text-info) 14%, transparent), transparent 55%),
    var(--background-body);
  box-sizing: border-box;
  display: flex;
  font-family: var(--font-family-primary);
  inset: 0;
  justify-content: center;
  overflow: auto;
  padding: var(--spacing-6);
  position: fixed;
}

.auth-card {
  animation: auth-card-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: var(--background-tertiary);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-xl);
  box-shadow: 0 1.5rem 4rem -1.25rem color-mix(in srgb, var(--slate-950) 70%, transparent);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  max-width: 24rem;
  padding: var(--spacing-10) var(--spacing-8);
  text-align: center;
  width: 100%;
}

.auth-card__brand {
  display: flex;
  justify-content: center;
}

.auth-card__logo {
  height: 2.25rem;
  width: auto;
}

.auth-card__intro {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.auth-card__title {
  color: var(--text-body);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.auth-card__subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.auth-card form {
  margin: 0;
  width: 100%;
}

.auth-card__google {
  align-items: center;
  display: inline-flex;
  gap: var(--spacing-3);
  justify-content: center;
  transition: var(--transition-all-default, transform 0.2s ease, box-shadow 0.2s ease);
  width: 100%;
}

.auth-card__google:hover {
  box-shadow: 0 0.75rem 1.5rem -0.5rem color-mix(in srgb, var(--text-info) 55%, transparent);
  transform: translateY(-2px);
}

.auth-card__google:active {
  transform: translateY(0);
}

.auth-card__google-icon {
  flex-shrink: 0;
}

.auth-card__footer {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
}

/* Gentle staggered entrance for the card's contents. */
.auth-card > * {
  animation: auth-fade-up 0.5s ease-out both;
}

.auth-card__brand { animation-delay: 0.08s; }
.auth-card__intro { animation-delay: 0.16s; }
.auth-card > form { animation-delay: 0.24s; }
.auth-card__footer { animation-delay: 0.32s; }

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-card > * {
    animation: none;
  }
}
