:root {
  --grineu-primary: #179a43;
  --grineu-primary-dark: #0f7c35;
  --grineu-accent: #f4b740;
  --grineu-surface: #ffffff;
  --grineu-muted-surface: #f8fafc;
  --grineu-border: #e5e7eb;
  --grineu-text: #111827;
  --grineu-muted: #6b7280;
}

.public-error-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(23, 154, 67, 0.12), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f6faf7 52%, #ffffff 100%);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.public-error-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 148, 71, 0.18);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(10, 31, 51, 0.08);
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.public-error-kicker {
  color: #0f9447;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.public-error-card h1 {
  color: #07162b;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.public-error-copy {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 560px;
}

.public-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.public-error-button {
  align-items: center;
  border: 1px solid rgba(15, 148, 71, 0.38);
  border-radius: 8px;
  color: #106b30;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
}

.public-error-button:hover,
.public-error-button:focus {
  background: rgba(15, 148, 71, 0.08);
  color: #0b5d29;
}

.public-error-button.primary {
  background: linear-gradient(135deg, #0f9447, #0b6b31);
  border-color: #0f9447;
  color: #ffffff;
}

.public-error-button.primary:hover,
.public-error-button.primary:focus {
  background: linear-gradient(135deg, #0b7f3b, #095728);
  color: #ffffff;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  font-size: 14px;
  min-height: 100%;
}

body {
  color: var(--grineu-text);
  background: var(--grineu-muted-surface);
  min-height: 100%;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: var(--grineu-primary);
  text-decoration: none;
}

a:hover {
  color: var(--grineu-primary-dark);
}

.btn-primary {
  --bs-btn-bg: var(--grineu-primary);
  --bs-btn-border-color: var(--grineu-primary);
  --bs-btn-hover-bg: var(--grineu-primary-dark);
  --bs-btn-hover-border-color: var(--grineu-primary-dark);
  --bs-btn-active-bg: var(--grineu-primary-dark);
  --bs-btn-active-border-color: var(--grineu-primary-dark);
}

.card,
.dropdown-menu,
.modal-content {
  border-color: var(--grineu-border);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 34, 29, 0.08);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible {
  border-color: var(--grineu-primary);
  box-shadow: 0 0 0 0.2rem rgba(23, 154, 67, 0.18);
}

.auth-page {
  align-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(23, 154, 67, 0.13), transparent 20rem),
    radial-gradient(circle at 86% 72%, rgba(23, 154, 67, 0.1), transparent 24rem),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #f3fbf6 100%),
    var(--grineu-muted-surface);
  display: flex;
  min-height: 100vh;
}

.auth-page main {
  width: 100%;
}

.auth-shell {
  min-height: 100vh;
  width: 100%;
}

.auth-container {
  background: var(--grineu-surface);
  border-radius: 1.75rem;
  box-shadow: 0 1.75rem 4.75rem rgba(17, 24, 39, 0.12);
  height: clamp(680px, calc(100vh - 3rem), 720px);
  max-width: 1180px;
  overflow: hidden;
  width: 100%;
}

.auth-hero {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.82), transparent 12rem),
    radial-gradient(circle at 72% 62%, rgba(23, 154, 67, 0.08), transparent 15rem),
    linear-gradient(145deg, #f4fbf7 0%, #ecfdf3 100%);
  position: relative;
}

.auth-logo {
  color: var(--grineu-text);
}

/*.auth-logo-mark {
  border: 1px solid var(--grineu-border);
  box-shadow: 0 0.75rem 1.75rem rgba(17, 24, 39, 0.08);
  height: 2.75rem;
  width: 2.75rem;
}*/

.auth-logo-mark img,
.auth-mobile-logo {
  max-height: 6rem;
  max-width: 12rem;
}

.auth-left-panel {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
}

.auth-right-panel {
  background: var(--grineu-surface);
  flex: 0 0 55%;
  max-width: 55%;
}

.auth-hero-content {
  margin-inline: auto;
  max-width: 430px;
  width: 100%;
}

.auth-hero-content h1 {
  font-size: clamp(2rem, 2.45vw, 2.55rem);
  line-height: 1.12;
  max-width: 520px;
}

.auth-hero-copy {
  line-height: 1.65;
  max-width: 420px;
}

.auth-card {
  box-shadow: none;
  max-width: 450px;
}

.auth-card-body {
  padding: 3rem !important;
}

.auth-card .form-control {
  min-height: 54px;
}

.auth-card .form-floating > label {
  padding-top: 0.95rem;
}

.auth-card .btn-lg {
  min-height: 54px;
}

.auth-password-field {
  position: relative;
}

.auth-password-toggle {
  color: var(--grineu-muted);
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.auth-remember {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  min-height: 1.5rem;
}

.auth-remember .form-check-input {
  height: 1.05rem;
  margin-top: 0;
  width: 1.05rem;
}

.solar-illustration {
  min-height: 11.75rem;
  opacity: 0.7;
  position: relative;
}

.solar-panel-grid {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(4, 1fr);
  max-width: 17.5rem;
  position: relative;
  transform: perspective(700px) rotateX(12deg) rotateZ(-7deg);
  z-index: 2;
}

.solar-panel-grid span {
  aspect-ratio: 1.5;
  background:
    linear-gradient(135deg, rgba(23, 154, 67, 0.18), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 45%, rgba(23, 154, 67, 0.1) 45% 47%, transparent 47% 100%);
  border: 1px solid rgba(23, 154, 67, 0.16);
  border-radius: 0.55rem;
  box-shadow: 0 0.55rem 1.2rem rgba(17, 24, 39, 0.04);
}

.solar-orbit {
  background: rgba(23, 154, 67, 0.06);
  border-radius: 999px;
  filter: blur(3px);
  height: 5.5rem;
  left: 6rem;
  position: absolute;
  top: 5rem;
  width: 12.5rem;
}

.solar-node {
  background: rgba(23, 154, 67, 0.2);
  border: 0.35rem solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0.75rem 1.5rem rgba(17, 24, 39, 0.08);
  height: 1.25rem;
  position: absolute;
  width: 1.25rem;
  z-index: 3;
}

.solar-node-primary {
  right: 4rem;
  top: 3.25rem;
}

.solar-node-secondary {
  bottom: 2.25rem;
  left: 2rem;
}

@media (max-width: 991.98px) {
  .auth-page {
    align-items: center;
  }

  .auth-container {
    height: auto;
    max-width: 470px;
    min-height: auto;
  }

  .auth-card {
    margin-bottom: 2.5rem;
    max-width: 450px;
  }

  .auth-card-body {
    padding: 2rem !important;
  }

  .auth-left-panel,
  .auth-right-panel {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
