.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  color: var(--color-text-light);
}

.auth-container aside {
  flex: 2;
}
.auth-container main {
  flex: 1;
  padding: 5rem;
}

.auth-container aside {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Brand-green scrim over the map so the headline reads without any outline. */
.auth-container aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      200deg,
      rgba(27, 70, 33, 0.18) 0%,
      rgba(27, 70, 33, 0.45) 50%,
      rgba(17, 46, 22, 0.72) 100%
    );
  pointer-events: none;
}

.auth-container aside .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3.5rem;
  text-align: left;
}

.auth-container aside .hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.auth-container aside .float-text {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.auth-container aside .hero-sub {
  margin: 1.1rem 0 0;
  max-width: 48ch;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.auth-container aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-container main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  background-color: var(--color-dark);
}

.auth-container main header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-container main header img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}




.auth-container form label {
  color: var(--color-text-light);
  font-size: 1.2rem;
}

.auth-container form label .required {
  color: var(--color-danger);
}

.auth-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  gap: 1rem;
}

.auth-container form > div {
  display: flex;
  flex-direction: column;
}

.auth-container form .turnstile-widget {
  width: 100%;
  min-height: 70px;
}

.auth-container form .turnstile-widget .cf-turnstile,
.auth-container form .turnstile-widget iframe {
  display: block;
  width: 100% !important;
  min-width: 100%;
}

.auth-container button {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-yellow);
  background-color: var(--color-accent);
  cursor: pointer;
}

.auth-container button:hover {
  background-color: var(--color-dark-light);
}

.auth-container .password-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-container .password-field input {
  width: 100%;
}

.auth-container .password-field .btn-password {
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.auth-container #iconPassword {
  height: 40px;
  color: yellow;
}

.auth-container footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 1.5rem;
  min-height: 0;
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.auth-container .auth-footer-product {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.auth-container .auth-footer-topmap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1.05rem;
}

.auth-container .auth-footer-topmap img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
}

.auth-container .auth-footer-topmap:hover {
  text-decoration: underline;
}

.auth-container img {
  width: 30px;
}

.auth-container a {
  text-decoration: none;
  color: var(--color-text-light);
}

.auth-container form input {
  background-color: var(--color-accent-light);
  padding: 0.85rem 1rem;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  border-radius: 10px;
  font-size: 1.05rem;
  width: 95%;
  font-weight: 500;
}

.auth-container form input::placeholder {
  font-weight: 500;
}

.auth-container form input:focus {
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
}

/* Login error: light-red box with a simple red outline; fades after 8s
   (togglePassword.js adds .is-dismissed). */
.auth-container form .error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-danger);
  border-radius: 10px;
  background: #fdecea;
  color: #8e1c1c;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  transition: opacity 0.4s ease;
}

.auth-container form .error svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-danger);
}

.auth-container form .error.is-dismissed {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-container form .error { transition: none; }
}


.auth-container form .auth-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.auth-container form .auth-note strong {
  color: #fff;
}

.auth-container main { min-width: 0; overflow-wrap: anywhere; }
.auth-container form input { width: 100%; min-width: 0; }
.auth-container .password-field .btn-password { flex: 0 0 44px; min-height: 44px; }
.auth-container footer { align-items: center; }
@media (max-width: 1200px) {
  .auth-container main { padding: 2rem; }
  .auth-container aside .float-text { font-size: 2.5rem; padding: 1rem; }
}
@media (max-width: 768px) {
  .auth-container { min-height: 100dvh; }
  .auth-container aside { display: none; }
  .auth-container main { flex: 1; padding: 2rem 1.25rem; gap: 2rem; }
  .auth-container form { max-width: 28rem; margin-inline: auto; }
}

/* "or" divider + Sign in with Google (shown only when Google keys are set). */
.auth-container .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.auth-container .auth-divider::before,
.auth-container .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.auth-container .btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  color: #1f1f1f;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-container .btn-google svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.auth-container .btn-google:hover {
  background: #f7f9f5;
}

.auth-container .btn-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 215, 15, 0.55);
}

/* Forgot-password link (login) and the reset-flow pages. */
.auth-container .auth-forgot {
  align-self: center;
  margin-top: -0.25rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-container .auth-forgot:hover,
.auth-container .auth-forgot:focus-visible {
  text-decoration: underline;
}

.auth-container .auth-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-container .auth-back-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--color-yellow);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-container .auth-back-link:hover,
.auth-container .auth-back-link:focus-visible {
  text-decoration: underline;
}

.auth-container .auth-link-button {
  display: block;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-yellow);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
