/* 085 - Capa visual Bootstrap 5 para el acceso principal del TPV. */
:root {
  --essential-primary: #0d6efd;
  --essential-primary-dark: #0b5ed7;
  --essential-surface: rgba(255, 255, 255, 0.96);
  --essential-border: rgba(13, 110, 253, 0.13);
  --essential-shadow: 0 20px 50px rgba(21, 62, 103, 0.16);
}

html,
body {
  min-height: 100%;
}

body.index-app {
  min-height: 100vh;
  margin: 0;
  background: #eef5fb;
  color: #243447;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.index-app .fullscreen_bg {
  min-height: 100vh;
  padding: 2.25rem 1rem;
  background:
    linear-gradient(rgba(241, 247, 252, 0.88), rgba(231, 242, 250, 0.92)),
    url(../img/bg_full.png) center center / cover no-repeat fixed;
}

body.index-app .index-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

body.index-app .login-card,
body.index-app .modules-card {
  border: 1px solid var(--essential-border);
  border-radius: 1.25rem;
  background: var(--essential-surface);
  box-shadow: var(--essential-shadow);
}

body.index-app .login-card {
  max-width: 430px;
  margin: 0 auto;
  padding: 2rem;
}

body.index-app .brand-link {
  display: inline-block;
  text-decoration: none;
}

body.index-app .brand-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 1.5rem;
}

body.index-app .form-label {
  margin-bottom: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: #526271;
}

body.index-app .form-control,
body.index-app .form-select {
  min-height: 46px;
  border-radius: .75rem;
  border-color: #cfdae4;
  box-shadow: none;
}

body.index-app .form-control:focus,
body.index-app .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

body.index-app .form-control.is-invalid {
  border-color: #dc3545;
  background-image: none;
}

body.index-app .btn {
  min-height: 46px;
  border-radius: .8rem;
  font-weight: 600;
}

body.index-app .btn-login {
  width: 100%;
  margin-top: .4rem;
}

body.index-app .modules-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

body.index-app .modules-title {
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7c8c;
}

body.index-app .botonera .module-col {
  display: flex;
}

body.index-app .botonera .module-col > .btn,
body.index-app .botonera .module-col > .dropdown {
  width: 100%;
}

body.index-app .botonera .dropdown > .btn {
  width: 100%;
}

body.index-app .botonera .btn {
  min-height: 58px;
  padding: .75rem 1rem;
  box-shadow: 0 8px 18px rgba(13, 110, 253, .11);
}

body.index-app .botonera .btn:disabled {
  box-shadow: none;
  opacity: .48;
}

body.index-app .dropdown-menu {
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: .4rem;
  border: 1px solid #dbe4ec;
  border-radius: .8rem;
  box-shadow: 0 14px 34px rgba(32, 62, 89, .16);
}

/* login.php conserva el markup historico <li><a>; lo adaptamos visualmente sin tocar backend. */
body.index-app .dropdown-menu > li > a {
  display: block;
  padding: .65rem .8rem;
  border-radius: .55rem;
  color: #243447;
  text-decoration: none;
  white-space: normal;
}

body.index-app .dropdown-menu > li > a:hover,
body.index-app .dropdown-menu > li > a:focus {
  background: #eef5ff;
  color: #0a58ca;
}

body.index-app .access-hint {
  margin: 1rem 0 0;
  font-size: .84rem;
  color: #7a8895;
  text-align: center;
}

@media (max-width: 767.98px) {
  body.index-app .fullscreen_bg {
    padding: 1rem .75rem;
    background-attachment: scroll;
  }

  body.index-app .login-card,
  body.index-app .modules-card {
    border-radius: 1rem;
  }

  body.index-app .login-card {
    padding: 1.35rem;
  }

  body.index-app .modules-card {
    padding: 1rem;
  }
}
