:root {
  --bg-top: #f4efe8;
  --bg-bottom: #d7c7b2;
  --surface: #ffffff;

  --ink: #20160e;
  --muted: #7a6b5e;
  --border: #e6ded4;

  --tan: #a28456;
  --tan-dark: #7c6140;

  --accent: #17AFA9;
  --accent-dark: #10908b;
  --shadow: 0 26px 70px rgba(9, 11, 30, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
}

.login-layout {
  width: 100%;
  max-width: 1040px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.brand-panel {
  background:
    linear-gradient(
      115deg,
      rgba(49, 28, 14, 0.86) 0%,
      rgba(124, 97, 63, 0.58) 45%,
      rgba(162, 132, 86, 0.28) 100%
    ),
     url("/mainassets/login/img/wmn_nuevalife.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}

.brand-headline {
  margin-top: 72px;
  max-width: 420px;
}

.brand-headline h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.brand-headline p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-badge {
  position: absolute;
  left: 40px;
  bottom: 32px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 8px 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-panel {
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background-color: var(--surface);
}

.login-header h2 {
  margin-top: 0;
  font-size: 1.65rem;
  font-weight: 650;
  color: var(--ink);
}

.login-header p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-error {
  background: #fdecc8;
  color: #6a4b16;
  border: 1px solid #f3d69a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 20px;
}


label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

input[type="text"],
input[type="password"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfaf8;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px rgba(23, 175, 169, 0.18);
  background: #ffffff;
}

.btn-row-primary {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #0b1a18;
  padding: 14px 52px;
  min-width: 240px;
  box-shadow: 0 14px 30px rgba(16, 144, 139, 0.28), 0 2px 6px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  background: var(--accent-dark);
  filter: brightness(1.02);
}

.login-footer {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 960px) {
  .page-shell { padding: 24px 16px; }
  .login-layout { grid-template-columns: 1fr; border-radius: 16px; }
  .brand-panel { padding: 32px 24px 112px; }
  .hero-badge { left: 24px; bottom: 24px; }
  .login-panel { padding: 32px 24px 32px; }
}

