/* Hostage Cloud — Cloudflare-style auth pages */
:root {
  --hc-green: #74aa31;
  --hc-green-dark: #5d8a24;
  --hc-green-soft: #e8f3d6;
  --hc-ink: #1a1a1a;
  --hc-muted: #5c5c5c;
  --hc-border: #e5e5e5;
  --hc-panel: #0b0f0a;
  --hc-panel-2: #121812;
}

html, body.page-login,
body.page-signup,
body.page-password-reset {
  height: 100%;
  margin: 0;
}

body.page-login,
body.page-signup,
body.page-password-reset {
  background: #fff;
  overflow-x: hidden;
}

body.page-login .toast-container,
body.page-signup .toast-container,
body.page-password-reset .toast-container {
  z-index: 1090;
}

.hc-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hc-auth__form-pane {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

.hc-auth__form-top {
  padding: 1.5rem 2rem 0;
}

.hc-auth__logo img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.hc-auth__form-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.hc-auth__form-card {
  width: 100%;
  max-width: 400px;
}

.hc-auth__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hc-ink);
  text-align: center;
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hc-auth__form-card .form-label {
  font-weight: 600;
  color: var(--hc-ink);
  font-size: 0.875rem;
}

.hc-auth__form-card .form-control,
.hc-auth__form-card .form-select {
  border-radius: 8px;
  border-color: var(--hc-border);
  padding: 0.65rem 0.85rem;
  min-height: 44px;
}

.hc-auth__form-card .form-control:focus,
.hc-auth__form-card .form-select:focus {
  border-color: var(--hc-green);
  box-shadow: 0 0 0 0.2rem rgba(116, 170, 49, 0.2);
}

.hc-auth__form-card .btn-primary {
  --bs-btn-bg: var(--hc-green);
  --bs-btn-border-color: var(--hc-green);
  --bs-btn-hover-bg: var(--hc-green-dark);
  --bs-btn-hover-border-color: var(--hc-green-dark);
  --bs-btn-active-bg: var(--hc-green-dark);
  --bs-btn-active-border-color: var(--hc-green-dark);
  --bs-btn-disabled-bg: var(--hc-green);
  --bs-btn-disabled-border-color: var(--hc-green);
  border-radius: 8px;
  font-weight: 600;
  padding: 0.7rem 1rem;
  min-height: 46px;
}

.hc-auth__form-card .btn-outline-primary {
  --bs-btn-color: var(--hc-green);
  --bs-btn-border-color: var(--hc-green);
  --bs-btn-hover-bg: var(--hc-green);
  --bs-btn-hover-border-color: var(--hc-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hc-green-dark);
  --bs-btn-active-border-color: var(--hc-green-dark);
  border-radius: 8px;
  font-weight: 600;
}

.hc-auth__links {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--hc-muted);
  font-size: 0.925rem;
}

.hc-auth__links a {
  color: var(--hc-green);
  font-weight: 600;
  text-decoration: none;
}

.hc-auth__links a:hover {
  text-decoration: underline;
  color: var(--hc-green-dark);
}

.hc-auth__legal {
  padding: 1rem 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #8a8a8a;
  line-height: 1.5;
}

.hc-auth__legal a {
  color: var(--hc-green);
  text-decoration: none;
}

.hc-auth__legal a:hover {
  text-decoration: underline;
}

.hc-auth__brand-pane {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(116, 170, 49, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(116, 170, 49, 0.12), transparent 50%),
    linear-gradient(160deg, var(--hc-panel) 0%, var(--hc-panel-2) 55%, #0a1408 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hc-auth__brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 45%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.hc-auth__brand-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
}

.hc-auth__brand-top .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
}

.hc-auth__brand-top .btn-light {
  background: #fff;
  color: var(--hc-ink);
  border: none;
}

.hc-auth__brand-top .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hc-auth__brand-top .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.hc-auth__brand-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3.5rem 4rem;
  max-width: 560px;
}

.hc-auth__brand-logo {
  margin-bottom: 2.5rem;
}

.hc-auth__brand-logo img {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.hc-auth__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-green);
  margin-bottom: 0.85rem;
}

.hc-auth__headline {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #fff;
}

.hc-auth__subhead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.hc-auth__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--hc-ink) !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  text-decoration: none !important;
  width: fit-content;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-auth__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--hc-ink) !important;
}

.hc-auth__form-card .card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.hc-auth__form-card .card-body {
  padding: 0;
}

/* Signup can be taller — allow scroll in form pane */
body.page-signup .hc-auth__form-main {
  align-items: flex-start;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

@media (max-width: 991.98px) {
  .hc-auth {
    grid-template-columns: 1fr;
  }

  .hc-auth__brand-pane {
    display: none;
  }

  .hc-auth__form-pane {
    min-height: 100vh;
  }
}
