/* FirmaHub auth — same atmosphere as landing */

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-shell {
  position: relative;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-shell__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-shell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.auth-shell__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(244, 247, 245, 0.97) 0%, rgba(244, 247, 245, 0.9) 46%, rgba(244, 247, 245, 0.4) 72%, rgba(13, 61, 46, 0.32) 100%),
    linear-gradient(0deg, rgba(18, 36, 28, 0.18) 0%, transparent 42%);
}

.auth-shell__inner {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 2.5rem));
  margin: 5rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
  padding-bottom: 1rem;
}

.auth-intro {
  margin-bottom: 1rem;
}

.auth-intro .land-brand {
  margin-bottom: 0.55rem;
}

.auth-intro .land-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.auth-intro .land-brand__name {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.auth-intro__lede {
  margin: 0;
  max-width: 26rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(18, 36, 28, 0.72);
  font-weight: 500;
}

.auth-flash {
  margin: 0 0 1rem;
  position: static;
}

.auth-stage {
  background: rgba(247, 250, 248, 0.88);
  border: 1px solid var(--land-line);
  border-radius: 12px;
  padding: 1.35rem 1.3rem 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(13, 61, 46, 0.1);
}

.auth-stage .auth-panel,
.auth-stage .panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

.auth-stage .auth-brand {
  display: none;
}

.auth-stage h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--land-ink);
}

.auth-stage .muted {
  color: rgba(18, 36, 28, 0.62);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 0.25rem;
}

.auth-stage .form {
  margin: 0.85rem 0 0.5rem;
  gap: 0.3rem;
}

.auth-stage .form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--land-ink);
  margin-top: 0.55rem;
}

.auth-stage .form input,
.auth-stage .form select {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--land-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--land-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-stage .form input:focus,
.auth-stage .form select:focus {
  outline: none;
  border-color: var(--land-forest);
  box-shadow: 0 0 0 3px rgba(20, 92, 69, 0.15);
}

.auth-stage .form .btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.85rem 1.1rem !important;
  border-radius: 6px !important;
  background: var(--land-forest) !important;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-stage .form .btn:hover {
  background: var(--land-forest-deep) !important;
  transform: translateY(-1px);
}

.auth-stage > .panel > .muted:last-child,
.auth-stage .auth-foot {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.auth-stage a {
  color: var(--land-forest);
  font-weight: 600;
  text-decoration: none;
}

.auth-stage a:hover {
  text-decoration: underline;
}

.auth-stage .err {
  color: #8b2e2e;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .auth-shell__inner {
    margin-top: 4.75rem;
    width: calc(100% - 1.75rem);
  }

  .auth-stage {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .auth-intro .land-brand__mark {
    width: 44px;
    height: 44px;
  }
}
