/* ===============================
   VARIABLES
================================= */
:root {
  --font-size-small: 0.875rem;
  --font-size-label: 12px;
  --color-primary: #007bff;
  --color-label: #495057;
  --color-label-focus: #777;
  --color-bg: #f5f5f5;
  --height-input: 3.125rem;
  --padding-input: 0.75rem;
  --padding-top-body: 40px;
  --padding-bottom-body: 40px;
  --max-width-form: 420px;
}

/* ===============================
   BASE
================================= */
html, body {
  height: 100%;
}

body {
  font-family: 'Helvetica', sans-serif;
  font-size: var(--font-size-small);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  background-image: linear-gradient(
    rgba(255, 193, 7, 0.45),   /* ámbar */
    rgba(108, 117, 125, 0.55) /* gris */
  ), url("../img/horizontal.jpeg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  padding-top: var(--padding-top-body);
  padding-bottom: var(--padding-bottom-body);
}

@media (max-width: 576px) {
  body {
    background-image: linear-gradient(
      rgba(255, 193, 7, 0.45),
      rgba(108, 117, 125, 0.55)
    ), url("../img/vertical.jpeg");
  }
}

/* ===============================
   LOGO
================================= */
.logo-img {
  width: 75%;
}
@media (max-width: 992px) {
  .logo-img { width: 60%; }
}
@media (max-width: 768px) {
  .logo-img { width: 40%; }
}
@media (max-width: 576px) {
  .logo-img { width: 70%; }
}

/* ===============================
   ELEMENTOS EXTRA
================================= */
.forgot-password {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.9em;
  margin-top: 1em;
  font-weight: bold;
}
.forgot-password:hover {
  text-decoration: underline;
}

.fixed-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* ===============================
   FORMULARIO
================================= */
form {
  background-color: rgba(222, 240, 253, 0.7);
  border-radius: 15px;
  max-width: 420px;
  margin: auto;
}

.input-group-text i,
.btn i {
  font-size: 1rem;
}


.clean-login .input-group-text {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-right: none;
}

.clean-login .form-control {
  border-left: none;
}

.clean-login .form-control:focus {
  box-shadow: none;
  border-color: var(--color-primary);
}

.clean-login .btn-outline-light {
  background-color: #fff;
  border-color: #ced4da;
  color: #333;
}

.clean-login .btn-outline-light:hover {
  background-color: #f0f0f0;
}

/* ===============================
   CONTRASEÑA - EFECTO OJO
================================= */
#inputpass {
  transition: all 0.2s ease-in-out;
}

#togglePassword:hover i,
#togglePassword:focus i {
  color: var(--color-primary);
}

#togglePassword:active {
  background-color: #f0f0f0;
}

input:focus {
  box-shadow: none;
}

/* ===============================
   AMBIENTE: TEST / PRUEBAS
================================= */

body.env-test{
  padding-top: calc(var(--padding-top-body) + 48px);
}

/* Banner superior TEST */
body.env-test .env-banner{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;

  color: #fff;
  background: repeating-linear-gradient(
    45deg,
    #dc3545,
    #dc3545 12px,
    #b02a37 12px,
    #b02a37 24px
  );

  border-bottom: 2px solid #842029;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Chip debajo del logo */
body.env-test .env-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 14px;
  border-radius: 999px;

  font-weight: 900;
  font-size: .9rem;

  color: #842029;
  background: rgba(220,53,69,.15);
  border: 1px solid rgba(220,53,69,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

/* Firma del card */
body.env-test .clean-login--env{
  border-top: 6px solid #dc3545;
}

/* Botón principal en rojo TEST */
body.env-test .clean-login--env .btn.btn-primary{
  background: #dc3545;
  border-color: #dc3545;
}

body.env-test .clean-login--env .btn.btn-primary:hover{
  background: #b02a37;
  border-color: #b02a37;
}
