/* =========================================================
   1. BASE GENERAL (FONDO + LAYOUT)
========================================================= */

body.login-page.email-otp-page { height: auto; min-height: 100vh; overflow-y: auto; box-sizing: border-box; padding: 80px 0; }
body.login-page.email-otp-page .login-container { margin: auto; }
body.login-page.email-otp-page .login-container form { width: 100%; }
body.login-page.email-otp-page .login-container h2 { font-size: 21px; margin-bottom: 0; }
body.login-page.email-otp-page .login-container p { overflow-wrap: anywhere; line-height: 1.45; }
body.login-page.email-otp-page footer { position: static; display: none; }
@media (max-width: 520px) {
  body.login-page.email-otp-page .login-container { padding: 24px; }
  body.login-page.email-otp-page .branding h1 { font-size: 21px; white-space: normal; }
}

body.login-page {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  height: 100vh;
  color: #fff;

  background: linear-gradient(135deg, #373c41 0%, #63615d 55%, #a19fa0 100%);
  background-attachment: fixed;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   2. CAJA LOGIN
========================================================= */

body.login-page .login-container {
  width: 460px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  padding: 40px;

  border-radius: 18px;
  border: 1px solid rgba(87, 65, 23, 0.844);

  background: rgba(60, 60, 63, 0.627);

  box-shadow:
    0 28px 70px rgba(255, 249, 253, 0.834),
    0 10px 28px rgba(255, 228, 228, 0.38),
    inset 0 1px 0 rgba(65, 22, 57, 0.6);

  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

/* =========================================================
   EFECTO HOVER CAJA LOGIN
========================================================= */

body.login-page .login-container:hover {
  border-color: #ffc876;

  box-shadow:
    0 0 0 1px rgb(132, 104, 57),
    0 0 22px rgba(76, 124, 255, 0.35),
    0 18px 38px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  transform: translateY(-3px);
}

/* =========================================================
   3. BRANDING
========================================================= */

body.login-page .branding h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

body.login-page .branding p {
  margin-top: 6px;
  font-size: 15px;
  color: #dbd9db;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================================================
   4. INPUTS Y BOTÓN BASE
========================================================= */

body.login-page .login-container input,
body.login-page .login-container button {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
}

/* =========================================================
   5. INPUTS
========================================================= */

body.login-page .login-container input {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.login-page .login-container input::placeholder {
  color: #ccc;
}

body.login-page .login-container input:focus {
  outline: none;
  border-color: #22d3d3;
  box-shadow: 0 0 8px rgba(34, 211, 211, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   6. BOTÓN
========================================================= */

body.login-page .login-container button {
  border: none;
  background: linear-gradient(90deg, #848384, #595859);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.login-page .login-container button:hover {
  background: linear-gradient(90deg, #766427, #664d1e);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   7. ERROR
========================================================= */

body.login-page .error {
  color: #ff7070;
  margin-top: 12px;
  font-size: 13px;
}

/* =========================================================
   8. FOOTER
========================================================= */

body.login-page footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #fff7f7;
  letter-spacing: 0.3px;
}

/* =========================================================
   11. MARCA
========================================================= */

.erp-text {
  display: block;
  margin-top: 6px;

  font-size: 26px;
  letter-spacing: 1px;

  font-weight: 700;

  color: #aa3673;
  opacity: 0.95;

  text-transform: uppercase;
}

/* =========================================================
   LABELS LOGIN
========================================================= */

body.login-page .login-container form {
  width: 100%;
}

body.login-page .login-container label {
  display: block;
  width: 100%;
  text-align: center;

  margin-top: 18px;
  margin-bottom: 8px;

  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
}

/* Evita que el input empuje raro debajo del label */
body.login-page .login-container input {
  margin-top: 0;
}

/* Separación limpia del botón */
body.login-page .login-container button {
  margin-top: 16px;
}

/* =========================================================
   RESPONSIVE LOGIN
========================================================= */

@media (max-width: 520px) {
  body.login-page .login-container {
    width: calc(100vw - 32px);
    padding: 32px 24px;
  }

  body.login-page .branding h1 {
    white-space: normal;
    font-size: 24px;
  }

  .erp-text {
    font-size: 23px;
  }
}

/* ============================================
   SELECTOR DE IDIOMA · LOGIN
   ============================================ */

.login-language-selector {
  position: fixed;
  top: 22px;
  right: 220px;
  z-index: 1200;
}

.login-language-selector .language-selector__trigger {
  background: #7035c3;
}

@media (max-width: 480px) {
  .login-language-selector {
    top: 14px;
    right: 14px;
  }
}
