/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.12), transparent 30%),
    linear-gradient(180deg, #020617 0%, #030712 100%);
  color: #f8fafc;
}

.auth-shell__stage {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-shell__glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 24% 16%, rgba(34, 211, 238, 0.12), transparent 24%),
    radial-gradient(circle at 76% 8%, rgba(56, 189, 248, 0.1), transparent 26%);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 27rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.88);
  padding: 1.35rem;
  box-shadow: 0 24px 80px rgba(8, 15, 32, 0.45);
  backdrop-filter: blur(18px);
}

.auth-card--wide {
  max-width: 28rem;
}

.auth-card__header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-card__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 0.85rem;
}

.auth-card__title {
  margin: 0.75rem 0 0;
  color: #f8fafc;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-wrap: balance;
}

.auth-card__lede {
  margin: 0.7rem auto 0;
  max-width: 20rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-wrap: balance;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-form__group {
  display: grid;
  gap: 0.45rem;
}

.auth-form__label {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 700;
}

.auth-form__input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: #020617;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.auth-form__input::placeholder {
  color: #64748b;
}

.auth-form__input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.auth-form__checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.auth-form__checkbox {
  height: 1rem;
  width: 1rem;
  accent-color: #22d3ee;
}

.auth-form__submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  padding: 0.8rem 1.1rem;
  color: #031524;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.auth-form__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.auth-form__submit:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.auth-card__footer {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.auth-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 120ms ease;
}

.auth-link:hover {
  color: #f8fafc;
}

.auth-errors {
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
  padding: 0.9rem 1rem;
  color: #fecaca;
}

.auth-errors__title {
  margin: 0 0 0.5rem;
  color: #fee2e2;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-errors__list {
  margin: 0;
  padding-left: 1.1rem;
}

@media (max-width: 640px) {
  .auth-card {
    max-width: 24rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
  }

  .auth-card__title {
    font-size: clamp(2rem, 13vw, 2.9rem);
  }

  .auth-card__lede {
    font-size: 0.875rem;
  }
}
