/* ============================================
   MŌRA MOOD POS — Login Premium (Responsive Escala 1.5x)
   ============================================ */

/* Global Reset */
html.login-page-active, html.login-page-active body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background-color: #F8F6F1;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

#page-login {
  background-color: #F8F6F1;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-split-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* ==================================
   LEFT PANEL (48%)
   ================================== */
.login-left-panel {
  width: 48%;
  height: 100%;
  background: linear-gradient(180deg, #2B0D46 0%, #3A1560 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 42px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Evita que el logo, texto y tarjeta colisionen */
  z-index: 10;
}

/* Watermark Background */
.decor-hoja-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* Logo */
.decor-logo {
  width: 160px;
  object-fit: contain;
  z-index: 5;
  position: relative;
}

/* Text Content Container */
.login-left-content {
  position: relative;
  z-index: 6;
  margin-top: 20px;
  margin-bottom: 20px;
}

.title-small {
  font-family: 'Poppins', sans-serif;
  font-size: 21px;
  font-weight: 400;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1;
}

.title-main {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0 0 30px 0;
}

.slogan {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
}

.slogan .highlight {
  color: #8ED000;
  font-weight: 600;
}

/* Feature Card (Sistema POS) */
.feature-card {
  width: 180px;
  height: 84px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 7;
}

.feature-card-icon {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 28px;
  height: 28px;
}
.feature-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: #8ED000;
  stroke-width: 1.5;
  fill: none;
}

.feature-card-text {
  position: absolute;
  left: 56px;
  top: 20px;
}

.fc-title {
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 2px;
  font-family: 'Poppins', sans-serif;
}

.fc-subtitle {
  font-size: 11px;
  color: #7D7D7D;
  font-family: 'Poppins', sans-serif;
}

.fc-bottom-line {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: #5C9800;
  height: 3px;
  border-radius: 999px;
  width: 70%;
}

/* Mascot (Mora) */
.decor-mora {
  position: absolute;
  bottom: 45px;
  right: 0;
  width: 45%;
  max-width: 350px;
  min-width: 200px;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
}

/* Small floating leaves on left */
.decor-hoja-1 {
  position: absolute;
  left: 30px;
  top: 40%;
  width: 30px;
  z-index: 2;
}

.decor-hoja-2 {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 80px;
  z-index: 6;
}

/* ==================================
   RIGHT PANEL (52%)
   ================================== */
.login-right-panel {
  width: 52%;
  height: 100%;
  background-color: #F8F6F1;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Top Right Solid Leaves */
.decor-hoja-3-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 126px;
  height: 126px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* FORMULARIO */
.login-card-new {
  width: 100%;
  max-width: 380px;
  z-index: 5;
  margin-top: -40px;
}

.heading-container {
  margin-bottom: 40px;
  text-align: left;
}

.login-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #2B0D46;
  margin: 0 0 12px 0;
  text-align: center;
}

.login-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #7D7D7D;
  margin: 0;
  text-align: center;
}

.login-form-new {
  display: flex;
  flex-direction: column;
}

.form-group-new {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.input-icon-new {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #2B0D46;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon-new svg {
  width: 18px;
  height: 18px;
}

.input-new {
  width: 100%;
  height: 54px;
  border-radius: 15px;
  background-color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  padding: 0 16px 0 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #2B0D46;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.input-new:focus {
  border: 1px solid #5C9800;
}

.input-new::placeholder {
  color: #7D7D7D;
}

.toggle-pass-new {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #2B0D46;
  display: flex;
  align-items: center;
}

.toggle-pass-new:hover {
  color: #5C9800;
}

.toggle-pass-new svg {
  width: 18px;
  height: 18px;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 24px;
}

.checkbox-label-new {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #7D7D7D;
  cursor: pointer;
  user-select: none;
}

.checkbox-new {
  display: none;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #5C9800;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-custom svg {
  width: 10px;
  height: 10px;
  stroke: #FFFFFF;
  stroke-width: 3;
  fill: none;
  opacity: 0;
}

.checkbox-new:checked + .checkbox-custom {
  background-color: #5C9800;
}

.checkbox-new:checked + .checkbox-custom svg {
  opacity: 1;
}

.forgot-pass-new {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #5C9800;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.forgot-pass-new:hover {
  text-decoration: underline;
}

.btn-login-new {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background-color: #5C9800;
  border: none;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(92,152,0,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(92,152,0,0.35);
}

.btn-login-new svg {
  width: 18px;
  height: 18px;
}

/* Mensaje de Error */
.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #e05555;
  font-weight: 500;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* Pie de página */
.login-footer-new {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: #7D7D7D;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================================
   RESPONSIVE (TABLET & MOBILE)
   ================================== */
@media (max-width: 1279px) {
  .login-left-panel { padding: 30px; }
  .decor-mora { width: 45%; bottom: 30px; }
  .login-card-new { max-width: 340px; }
  .title-main { font-size: 36px; }
}

@media (max-width: 768px) {
  html.login-page-active, html.login-page-active body {
    height: auto;
    overflow: visible;
  }
  #page-login {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
  }
  .login-split-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .login-left-panel {
    width: 100%;
    height: auto;
    min-height: 480px;
    padding: 40px 30px 100px 30px; /* Extra bottom padding for mascot */
    justify-content: flex-start;
    gap: 30px;
  }
  .decor-logo {
    width: 120px;
  }
  .login-left-content {
    margin-top: 0;
    margin-bottom: 0;
  }
  .title-small { font-size: 18px; }
  .title-main { font-size: 36px; margin-bottom: 12px; }
  .slogan { font-size: 14px; }
  
  .feature-card {
    width: 160px;
    height: 70px;
    margin-top: 0;
  }
  .feature-card-icon { top: 12px; left: 12px; width: 24px; height: 24px; }
  .feature-card-text { top: 14px; left: 44px; }
  .fc-title { font-size: 11px; }
  .fc-subtitle { font-size: 9px; }
  .fc-bottom-line { bottom: 10px; left: 12px; height: 2px; }
  
  .decor-mora {
    width: 220px;
    bottom: -10px;
    right: 10px;
  }
  
  .decor-hoja-1, .decor-hoja-2, .decor-hoja-3-right, .decor-hoja-bg {
    display: none;
  }
  
  .login-right-panel {
    width: 100%;
    height: auto;
    padding: 60px 24px 100px 24px; 
    justify-content: flex-start;
    border-radius: 42px 42px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 20;
  }
  .login-card-new {
    max-width: 100%;
    margin-top: 0;
  }
  .login-heading { font-size: 36px; }
  .login-subtitle { font-size: 15px; }
}
