@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --header-height: 3.5rem;
  --first-color: #7ce48a;
  --second-color: #d1c75d;
  --black-soft: #676767;
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 0.95rem;
  --small-font-size: 0.8rem;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 6% 100%, rgba(124, 228, 138, 0.09), transparent 38rem),
    black;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-header {
  width: min(1440px, calc(100% - 4rem));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
}

.brand h3 {
  font-family: var(--body-font);
}

.brand-mark {
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--first-color);
  color: black;
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: white;
  font-family: var(--body-font);
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body-font);
  font-size: 0.72rem;
  white-space: nowrap;
}

.back-link:hover,
.label-row a:hover {
  color: var(--first-color);
}

.login-layout {
  width: min(1440px, calc(100% - 4rem));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  align-items: stretch;
  gap: 2rem;
}

.welcome-panel {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: clamp(2rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--black-soft);
}

.welcome-panel::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 6, 0.18) 5%, rgba(5, 8, 6, 0.9) 100%);
  content: "";
}

.welcome-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.22);
  transform-origin: right center;
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-top: auto;
  font-family: var(--body-font);
}

.eyebrow,
.form-kicker {
  color: var(--second-color);
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-panel h1 {
  margin: 1rem 0;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.04;
}

.welcome-panel p {
  max-width: 420px;
  color: white;
  line-height: 1.7;
}

.welcome-caption {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 3rem;
  color: white;
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 300;
}

.welcome-caption i {
  color: var(--first-color);
  font-size: 1.3rem;
}

.forms-panel {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  align-content: center;
  gap: 1rem;
}

.form-card {
  min-width: 0;
  padding: clamp(1.4rem, 2.4vw, 2.5rem);
  border: 1px solid var(--black-soft);
  border-radius: 8px;
  background: #111512;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.form-card#activo {
  opacity: 1;
}

.form-card h2 {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--body-font);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
}

.form-intro {
  min-height: 2.8em;
  margin: 0 0 1.5rem;
  color: var(--black-soft);
  font-family: var(--body-font);
  font-size: 0.85rem;
  line-height: 1.6;
}

.form-card form {
  display: grid;
  gap: 0.65rem;
}

.form-card label {
  margin-top: 0.5rem;
  color: white;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.label-row label {
  margin: 0;
}

.label-row a {
  color: var(--second-color);
  font-size: 0.7rem;
}

.form-card input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  outline: none;
  background: black;
  color: white;
  font-family: var(--body-font);
  font-size: 0.85rem;
}

.form-card input::placeholder {
  font-family: var(--body-font);
  color: var(--black-soft);
}

.form-card input:focus-visible {
  border-color: var(--first-color);
  box-shadow: var(--black-soft);
}

.submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--first-color);
  border-radius: 5px;
  background: var(--first-color);
  color: #071008;
  cursor: default;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 700;
}

.submit-button i {
  font-size: 1.15rem;
}

.submit-outline {
  background: transparent;
  color: var(--first-color);
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--second-color);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: inherit;
  text-align: left;
}

.text-button:hover {
  color: var(--first-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}

.switch-prompt {
  margin: 0.6rem 0 0;
  color: var(--black-soft);
  font-family: var(--body-font);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.login-error {
  min-height: 0;
  margin: 0.2rem 0 0;
  color: #ff9292;
  font-size: 0.75rem;
}


@media (max-width: 1000px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    min-height: 360px;
  }

  .welcome-panel h1 {
    max-width: 650px;
    font-size: clamp(2.4rem, 7vw, 4rem);
  }
}

@media (max-width: 640px) {
  .login-header,
  .login-layout {
    width: calc(100% - 2rem);
  }

  .login-header {
    min-height: 70px;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 34px;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .copyright {
    font-size: 0.58rem;
  }

  .back-link {
    font-size: 0;
  }

  .back-link i {
    font-size: 1.3rem;
  }

  .login-layout {
    padding: 1rem 0;
    gap: 1rem;
  }

  .welcome-panel {
    min-height: 300px;
    padding: 1.5rem;
  }

  .welcome-panel h1 {
    font-size: 2.35rem;
  }

  .welcome-panel p {
    font-size: 0.9rem;
  }

  .welcome-caption {
    margin-top: 1.5rem;
  }

  .forms-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-intro {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.7rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.card-overlay span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--second-color);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}