.login-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-height: 100vh;
  background: white;
}

.logo img {
    width: 255px;
    height: auto;
    margin-bottom: 20px;
}

/* ---------------- LEFT ---------------- */
.login-left {
  padding: 80px 60px;
}

.login-left h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--color_secundario);
  line-height: 0.8;
}

.login-left h1 span {
  font-style: italic;
}

.badge {
  margin-top: 40px;
  display: inline-block;
  background: var(--color_secundario);
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------------- CENTER ---------------- */
.login-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #eef0ff;
  padding: 40px 35px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-title {
  font-family: var(--Anton);
  font-size: 48px;
  color: #1a2cff;
  margin-bottom: 20px;
}

.login-alert {
  background: #fdecea;
  color: #b71c1c;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 25px;
}

.login-text {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Office button */
.btn-office {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1a2cff;
  color: white;
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 25px;
}

.btn-office img {
  width: 22px;
}

/* Manual */
.login-help {
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-manual {
  display: inline-block;
  background: #c9ff3d;
  color: #000;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 25px;
}

.external-access {
  display: block;
  font-size: 14px;
  color: #666;
}

/* ---------------- RIGHT ---------------- */
.login-right {
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr 1fr; 
  gap: 15px;
  padding: 20px;
  overflow: hidden;      
}

.login-right img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ---------------- WHATSAPP ---------------- */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--color_secundario);
  color: var(--color_primario);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .login-left,
  .login-right {
    display: none;
  }

  .login-center {
    padding: 20px;
  }
}


/* ================= FORM ================= */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= LABELS ================= */
#loginForm label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151; /* gray-700 */
  margin-bottom: 4px;
}

/* ================= INPUTS ================= */
#loginForm input[type="text"],
#loginForm input[type="password"] {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb; /* gray-200 */
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

#loginForm input::placeholder {
  color: #9ca3af; /* gray-400 */
}

#loginForm input:focus {
  border-color: var(--color_secundario);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

/* ================= HELP TEXT ================= */
#loginForm p {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ================= PASSWORD TOGGLE ================= */
#loginForm .relative {
  position: relative;
}

#togglePassword {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: #f3f4f6; /* gray-100 */
  cursor: pointer;
  transition: background 0.2s;
}

#togglePassword:hover {
  background: #e5e7eb;
}

/* ================= REMEMBER & FORGOT ================= */
#loginForm .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#loginForm input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color_secundario);
}

#loginForm a {
  font-size: 14px;
  color: var(--color_secundario);
}

#loginForm a:hover {
  text-decoration: underline;
}

/* ================= ERROR BOX ================= */
#errorBox {
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 8px;
  border-radius: 8px;
}

/* ================= BUTTON ================= */
#loginForm button[type="submit"] {
  width: 100%;
  background: var(--color_secundario);
  color: white;
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s, transform 0.1s;
}

#loginForm button[type="submit"]:hover {
  filter: brightness(0.95);
}

#loginForm button[type="submit"]:active {
  transform: scale(0.98);
}

.login-help {
  font-size: 15px;
  margin-top: 10px;
}


/* ================= ERROR BOX ================= */
#errorBox {
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

#errorBox.hidden {
  display: none;
}
