:root {
  --mwl-green: #519e36;
  --mwl-green-light: #e6f4ea;
  --mwl-blue-muted: #6ba1ad;
  --mwl-text-dark: #0e1115;
  --mwl-text-secondary: #708191;
  --radius-16: 16px;
  --radius-10: 10px;
  --bg-page: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.login-page {
  font-family: "Rubik", sans-serif;
  background: url("../../public/images/bg/MwlBackgroundLogo.png") center/cover
    no-repeat;
  background-color: var(--bg-page);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.login-user {
  background: url("../../public/images/bg/fondoLoginMWL.jpg") center/cover no-repeat;
  background-attachment: fixed;
}

body.login-user::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.1); /* efecto glass */
  backdrop-filter: blur(4px);
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
}

/* HEADER DINÁMICO */
.main-header {
  display: flex;
  height: 85px;
  padding: 0 205px;
  background: #fff;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    0 4px 6px -4px rgba(24, 39, 75, 0.12),
    0 8px 8px -4px rgba(24, 39, 75, 0.08);
  z-index: 100;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* CONTENEDOR CENTRAL */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.login-box {
  width: 100%;
  max-width: 520px;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-16);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* TIPOGRAFÍA Y CABECERA CARD */
.header-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.login-header .subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  margin-bottom: 12px;
}

.login-header .subtitle strong {
  font-weight: 700;
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 6px;
  background-color: transparent;
  color: var(--mwl-blue-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* FORMULARIO */
.form-group label {
  display: flex;
  height: 30px;
  align-items: center;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  color: var(--mwl-text-dark);
  font-weight: 400;
}

.form-control {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-10);
  padding: 12px 15px;
  padding-right: 40px;
  font-size: 16px;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.forgot-link {
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--mwl-green);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  display: flex;
  padding: 12px 32px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--mwl-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-10);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* INFO BOX */
.info-box-figma {
  display: flex;
  padding: 16px;
  flex-direction: column;
  background: #eef1f4;
  border-radius: 10px;
  margin-top: 24px;
  gap: 8px;
}

.info-box-figma h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--mwl-text-dark);
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* FOOTER */
.main-footer {
  background: #fff;
  padding: 16px 183px;
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  color: var(--Dark, #0a142f);
  margin-top: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* RESPONSIVIDAD */
@media (max-width: 1024px) {
  .main-header {
    padding: 0 40px;
  }
  .main-footer {
    padding: 16px 40px;
  }
}

@media (max-width: 576px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* MOBILE FIRST FIXES */
@media (max-width: 768px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .logo-svg svg {
    width: 160px;
    height: auto;
  }

  .login-wrapper {
    padding: 20px 15px;
  }

  .login-card {
    padding: 25px 20px;
  }

  .login-header h2 {
    font-size: 18px;
  }

  .login-header .subtitle {
    font-size: 15px;
  }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 400px) {
  .login-card {
    padding: 20px 15px;
  }

  .form-control {
    font-size: 14px;
    padding: 10px 12px;
  }

  .btn-login {
    font-size: 14px;
    padding: 10px;
  }
}
