/* ==========================================================================
   css_inicio_sesion.css – página iniciar sesión
   ==========================================================================
   Partes modificadas:
   - Layout card centrada, breadcrumb, título Oswald
   - Formulario login, botón negro, enlaces registro/recuperar
   - Inputs con borde negro, mensajes error

   Responsive:
   - Desktop (base): card max-width centrada
   - Tablet ≤ 991px: márgenes y tipografía ajustados
   - Móvil ≤ 767px: card a ancho completo, padding reducido
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ----- Desktop / base ----- */

body#authentication,
body.page-authentication {
  background: var(--dil-cream, #faf5eb);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  color: var(--dil-ink, #151515);
}

body#authentication #wrapper,
body.page-authentication #wrapper,
body#authentication #main,
body.page-authentication #main {
  background: transparent;
}

/*
  Reordenar solo con CSS (sin tocar HTML/SEO):
  título → breadcrumb → formulario
*/
body#authentication #wrapper > .container,
body.page-authentication #wrapper > .container {
  display: flex;
  flex-direction: column;
}

body#authentication #wrapper > .container > .row,
body.page-authentication #wrapper > .container > .row,
body#authentication #content-wrapper,
body.page-authentication #content-wrapper,
body#authentication #main,
body.page-authentication #main {
  display: contents;
}

body#authentication .page-header,
body.page-authentication .page-header {
  order: 1;
  margin: 0.85rem 0 0.45rem;
  text-align: center;
}

body#authentication .breadcrumb,
body.page-authentication .breadcrumb {
  order: 2;
  display: flex;
  justify-content: center;
  margin: 0 0 1.35rem;
  padding: 0;
  background: transparent;
}

body#authentication .breadcrumb ol,
body.page-authentication .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#authentication .breadcrumb li,
body.page-authentication .breadcrumb li {
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body#authentication .breadcrumb li a,
body.page-authentication .breadcrumb li a {
  color: var(--dil-muted, #7a7a7a);
  text-decoration: none;
}

body#authentication .breadcrumb li a:hover,
body.page-authentication .breadcrumb li a:hover {
  color: var(--dil-black, #000);
}

body#authentication .breadcrumb li::after,
body.page-authentication .breadcrumb li::after {
  content: '/';
  margin-left: 0.4rem;
  color: #c4beb2;
}

body#authentication .breadcrumb li:last-child::after,
body.page-authentication .breadcrumb li:last-child::after {
  content: none;
}

body#authentication .page-header h1,
body.page-authentication .page-header h1 {
  margin: 0;
  font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dil-black, #000);
}

body#authentication #content.page-content,
body.page-authentication #content.page-content,
body#authentication #content.card,
body.page-authentication #content.card {
  order: 3;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
  padding: 2rem 2.1rem 1.85rem;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
  border-radius: var(--dil-radius, 0);
  box-shadow: none;
}

body#authentication .login-form,
body.page-authentication .login-form {
  margin: 0;
}

body#authentication #login-form .form-group,
body.page-authentication #login-form .form-group {
  display: block;
  margin: 0 0 1.15rem;
}

body#authentication #login-form .form-group.row,
body.page-authentication #login-form .form-group.row {
  display: block;
  margin-left: 0;
  margin-right: 0;
}

body#authentication #login-form .form-control-label,
body.page-authentication #login-form .form-control-label,
body#authentication #login-form .col-md-3.form-control-label,
body.page-authentication #login-form .col-md-3.form-control-label {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0 0 0.4rem;
  padding: 0;
  text-align: left;
  color: var(--dil-ink, #151515);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body#authentication #login-form .col-md-6.js-input-column,
body.page-authentication #login-form .col-md-6.js-input-column,
body#authentication #login-form .col-md-3.form-control-comment,
body.page-authentication #login-form .col-md-3.form-control-comment {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
}

body#authentication #login-form .form-control,
body.page-authentication #login-form .form-control {
  height: 2.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--dil-cream-soft, #fefcf7);
  border: 1px solid var(--dil-line, #ddd8ce);
  border-radius: var(--dil-radius, 0);
  color: var(--dil-ink, #151515);
  font-size: 0.92rem;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body#authentication #login-form .form-control:focus,
body.page-authentication #login-form .form-control:focus {
  background: var(--dil-white, #fff);
  border-color: var(--dil-black, #000);
  outline: 0;
  box-shadow: none;
}

body#authentication #login-form .input-group,
body.page-authentication #login-form .input-group {
  display: flex;
  width: 100%;
}

body#authentication #login-form .input-group .form-control,
body.page-authentication #login-form .input-group .form-control {
  flex: 1 1 auto;
  border-right: 0;
}

body#authentication #login-form .input-group-btn,
body.page-authentication #login-form .input-group-btn {
  display: flex;
}

body#authentication #login-form .input-group-btn .btn,
body.page-authentication #login-form .input-group-btn .btn {
  height: 2.85rem;
  padding: 0 0.95rem;
  background: var(--dil-black, #000);
  border: 1px solid var(--dil-black, #000);
  border-radius: var(--dil-radius, 0);
  color: var(--dil-white, #fff);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

body#authentication #login-form .input-group-btn .btn:hover,
body.page-authentication #login-form .input-group-btn .btn:hover {
  background: var(--dil-ink, #151515);
  color: var(--dil-yellow, #fccf27);
}

body#authentication #login-form .forgot-password,
body.page-authentication #login-form .forgot-password {
  margin: 0.15rem 0 1.35rem;
  text-align: left;
}

body#authentication #login-form .forgot-password a,
body.page-authentication #login-form .forgot-password a {
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body#authentication #login-form .forgot-password a:hover,
body.page-authentication #login-form .forgot-password a:hover {
  color: var(--dil-black, #000);
}

body#authentication #login-form .form-footer,
body.page-authentication #login-form .form-footer {
  margin: 0;
  padding: 0;
  text-align: center;
}

body#authentication #login-form #submit-login.btn-primary,
body.page-authentication #login-form #submit-login.btn-primary,
body#authentication #login-form .btn-primary,
body.page-authentication #login-form .btn-primary {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  background: var(--dil-black, #000);
  border: 1px solid var(--dil-black, #000);
  border-radius: var(--dil-radius, 0);
  color: var(--dil-white, #fff);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body#authentication #login-form #submit-login.btn-primary:hover,
body.page-authentication #login-form #submit-login.btn-primary:hover,
body#authentication #login-form .btn-primary:hover,
body.page-authentication #login-form .btn-primary:hover {
  background: var(--dil-yellow, #fccf27);
  border-color: var(--dil-yellow, #fccf27);
  color: var(--dil-black, #000);
}

body#authentication #content > hr,
body.page-authentication #content > hr {
  margin: 1.5rem 0 1.15rem;
  border: 0;
  border-top: 1px solid var(--dil-line, #ddd8ce);
}

body#authentication .no-account,
body.page-authentication .no-account {
  margin: 0;
  text-align: center;
}

body#authentication .no-account a,
body.page-authentication .no-account a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--dil-ink, #151515);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

body#authentication .no-account a:hover,
body.page-authentication .no-account a:hover {
  color: var(--dil-red, #d01b1b);
}

body#authentication .page-footer,
body.page-authentication .page-footer {
  order: 4;
  display: none;
}

/* ==========================================================================
   Tablet ≤ 991px
   ========================================================================== */

@media (max-width: 991px) {
  body#authentication #content.page-content,
  body.page-authentication #content.page-content,
  body#authentication #content.card,
  body.page-authentication #content.card {
    max-width: 30rem;
    padding: 1.75rem 1.5rem 1.6rem;
    margin-bottom: 3rem;
  }

  body#authentication .page-header h1,
  body.page-authentication .page-header h1 {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   Móvil ≤ 767px
   ========================================================================== */

@media (max-width: 767px) {
  body#authentication .breadcrumb,
  body.page-authentication .breadcrumb {
    margin-bottom: 1.1rem;
  }

  body#authentication .page-header,
  body.page-authentication .page-header {
    margin: 0.55rem 0 0.35rem;
    text-align: center;
  }

  body#authentication .page-header h1,
  body.page-authentication .page-header h1 {
    font-size: 1.45rem;
  }

  body#authentication #content.page-content,
  body.page-authentication #content.page-content,
  body#authentication #content.card,
  body.page-authentication #content.card {
    max-width: none;
    margin: 0 0 2.25rem;
    padding: 1.35rem 1.1rem 1.25rem;
    border-left: 0;
    border-right: 0;
  }

  body#authentication #login-form .form-control,
  body.page-authentication #login-form .form-control,
  body#authentication #login-form .input-group-btn .btn,
  body.page-authentication #login-form .input-group-btn .btn {
    height: 2.7rem;
  }

  body#authentication #login-form #submit-login.btn-primary,
  body.page-authentication #login-form #submit-login.btn-primary {
    min-height: 2.85rem;
  }
}
