/*
 * Pantalla de ingreso — réplica de la de la aplicación actual
 * (https://haulers.kargotools.com/users/sign_in).
 *
 * Las reglas salen tal cual del bloque de ingreso de app/assets/stylesheets/
 * main.scss del legado. Vive en un subdirectorio a propósito: el shell carga
 * todas las hojas de primer nivel (NavigationHelper#shell_stylesheets) y estas
 * reglas tocan `body` y `.header`, así que sólo las carga el layout `login`.
 */

@font-face {
  font-family: "Exo";
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url("/assets/fonts/exo-latin-ext-4762848b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Exo";
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url("/assets/fonts/exo-latin-8d61e9d0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* En el legado la caja y el interlineado vienen de la hoja base global. */
html {
  box-sizing: border-box;
  margin-top: 80px;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Arial;
  font-size: 12px;
}

.login-body {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -40px;
  bottom: -40px;
  width: auto;
  height: auto;
  background-image: url("/assets/login/bg-578194d9.jpg");
  background-size: cover;
  filter: blur(5px);
  z-index: -1;
}

.grad {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -40px;
  bottom: -40px;
  width: auto;
  height: auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 0;
  opacity: 0.7;
}

.header {
  position: absolute;
  top: calc(50% - 80px);
  left: calc(50% - 234px);
  z-index: 2;
}

.header div {
  float: left;
  color: #fff;
  font-family: "Exo", sans-serif;
  font-size: 80px;
  font-weight: 200;
}

.header div span {
  color: #5379fa !important;
}

.login {
  position: absolute;
  top: calc(50% - 75px);
  left: calc(50% - 50px);
  height: 150px;
  width: 350px;
  padding: 10px;
  z-index: 2;
}

.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
  width: 100%;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  color: #fff;
  font-family: "Exo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 4px;
}

.login input[type="password"] {
  margin-top: 10px;
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.login input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login input[type="submit"] {
  width: 100%;
  height: 35px;
  background: #fff;
  border: 1px solid #fff;
  cursor: pointer;
  border-radius: 2px;
  color: #151515;
  font-family: "Exo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px;
  margin-top: 10px;
}

.login input[type="submit"]:hover { opacity: 0.8; }
.login input[type="submit"]:active { opacity: 0.6; }
.login input[type="submit"]:focus { outline: none; }

/* El mensaje de credenciales inválidas. En el legado lo pinta Devise como
   flash sobre el fondo; aquí va bajo el formulario, dentro del mismo bloque. */
.login-alert {
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.login-help {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 10px);
  max-width: 450px;
  border: 1px solid white;
  border-radius: 10px;
  padding: 4px 8px;
  z-index: 2;
}

.login-help a {
  color: white;
  text-decoration: none;
}

/* Recuperar la clave y desbloquear la cuenta: el `#login-container` de
   devise/passwords y devise/unlocks del legado (main.scss), con los campos
   `#user_email`, `#user_password` y `#btn-ok` a lo ancho del recuadro. */
.recuperar {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 10px);
  max-width: 800px;
  border: 5px solid white;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  font-size: 16px;
  z-index: 2;
}

.recuperar h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.recuperar input[type="email"],
.recuperar input[type="password"] {
  width: 100%;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  color: #fff;
  font-family: "Exo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 4px;
}

.recuperar input[type="email"]:focus,
.recuperar input[type="password"]:focus {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.recuperar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.recuperar input[type="submit"] {
  width: 100%;
  height: 35px;
  background: #fff;
  border: 1px solid #fff;
  cursor: pointer;
  border-radius: 2px;
  color: #151515;
  font-family: "Exo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px;
  margin-top: 10px;
}

.recuperar input[type="submit"]:hover { opacity: 0.8; }
.recuperar input[type="submit"]:active { opacity: 0.6; }
.recuperar input[type="submit"]:focus { outline: none; }

.recuperar__nota {
  padding-top: 10px;
}

.recuperar__nota span,
.recuperar__error {
  color: red;
}

.recuperar__error {
  margin: 0 0 10px;
}
