:root {
  --brand: #0b6121;
  --brand-dark: #064516;
  --brand-soft: rgba(11, 97, 33, 0.12);
  --text: #17201a;
  --muted: #6d756f;
  --border: rgba(255, 255, 255, 0.32);
  --card: rgba(255, 255, 255, 0.86);
  --danger: #c2410c;
  --danger-bg: #fff3ed;
  --shadow: 0 28px 80px rgba(9, 34, 18, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(6, 69, 22, 0.76), rgba(11, 97, 33, 0.38)),
    url("https://backendtulindorecuerdo.com/imagenes/logo_tulindorecuerdo_empresa.png") center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(11, 97, 33, 0.24), transparent 36%);
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 18px;
}

#contenedor {
  width: min(920px, 100%);
  min-height: 480px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#contenedor_logo {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(11, 97, 33, 0.92), rgba(6, 69, 22, 0.78)),
    url("https://backend.tulindorecuerdo.com/imagenes/bg.png") center / cover no-repeat;
}

#contenedor_logo::before {
  content: "";
  width: min(270px, 70%);
  aspect-ratio: 5 / 3;
  background: url("https://backend.tulindorecuerdo.com/imagenes/logo_tulindorecuerdo_empresa.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.24));
}

#contenedor_logo::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

#Login {
  width: 100%;
  margin: 0;
}

#contenedor_Login {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 70px);
}

.login-header {
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.LabelText {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.TextLogin,
.TextLoginDefault {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(23, 32, 26, 0.13);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.TextLogin::placeholder {
  color: #9aa49d;
}

.TextLogin:focus,
.TextLoginDefault:focus {
  border-color: rgba(11, 97, 33, 0.72);
  box-shadow: 0 0 0 5px rgba(11, 97, 33, 0.12);
  transform: translateY(-1px);
}

.Buttom {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 28px rgba(11, 97, 33, 0.25);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.Buttom:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11, 97, 33, 0.32);
  filter: brightness(1.03);
}

.Buttom:active {
  transform: translateY(0);
}

.error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: 14px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#Pie {
  width: min(920px, 100%);
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

#Pie p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

@media (max-width: 760px) {
  .login-page {
    justify-content: flex-start;
    padding-top: 22px;
  }

  #contenedor {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 26px;
  }

  #contenedor_logo {
    min-height: 180px;
  }

  #contenedor_logo::before {
    width: min(230px, 62%);
  }

  #contenedor_Login {
    min-height: auto;
    padding: 30px 22px 26px;
  }
}
