@import "../theme/main.css";

:root {
  --azul-oscuro: #071b68;
  --azul-corporativo: #123edb;
  --azul-claro: #1c4cff;
  --gris-texto: #56627a;
  --gris-borde: #d8e0ee;
}

/* General */
.login-pf body {
  background: #ffffff;
  color: #495057;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Layout */
.login-pf-page {
  display: flex;
  flex-direction: row;
  height: 100vh;
  padding-top: 0;
  overflow: hidden;
}

/* Panel izquierdo */
.login-pf-page .login-pf-page-header {
  width: 460px;
  min-width: 460px;
  max-width: 460px;
  height: 100vh;

  padding: 55px 32px 45px 32px;

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

  text-align: center;
  background: #ffffff;

  border-right: 1px solid #e8edf5;
  box-shadow: 4px 0 18px rgba(7, 27, 104, 0.08);

  z-index: 2;
  margin-bottom: 0;
}

/* Logo */
#kc-header,
#kc-header-wrapper,
.login-logo {
  width: 100%;
  text-align: center;
}

#kc-header img,
#kc-header-wrapper img,
.login-logo img {
  display: block;
  margin: 0 auto 38px auto;
  max-width: 230px;
  height: auto;
}

/* Panel derecho */
.login-pf-page .card-pf {
  flex: 1;
  width: auto;
  height: 100vh;

  background-image: url("../img/bg-login.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Sin overlay */
.login-pf-page .card-pf::before {
  display: none;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--azul-oscuro);
}

h2 {
  font-size: 24px;
  margin: 0 0 18px 0;
  color: var(--azul-oscuro);
}

/* Textos */
.login-pf-page .login-pf-page-header p {
  color: var(--gris-texto);
  font-size: 14px;
  margin: 18px auto 0 auto;
}

/* Formulario */
#kc-form {
  width: 100%;
}

#kc-form .form-group,
.login-pf-page-header .form-group {
  display: flex;
  justify-content: center;
  width: 100%;
}

#kc-form input,
.form-group input,
.login-pf-page-header .form-group input {
  width: 100%;
  max-width: 300px;
  height: 42px;

  color: #495057;
  background: #ffffff;

  padding: 8px 12px;

  border: 1px solid var(--gris-borde);
  border-radius: 8px;

  outline: none;
  box-sizing: border-box;

  transition: border-color 0.2s, box-shadow 0.2s;
}

#kc-form input:focus,
.form-group input:focus,
.login-pf-page-header .form-group input:focus {
  border-color: var(--azul-corporativo);
  box-shadow: 0 0 0 3px rgba(18, 62, 219, 0.18);
}

#kc-form input:hover,
.form-group input:hover,
.login-pf-page-header .form-group input:hover {
  border-color: var(--azul-claro);
}

/* BOTON CORPORATIVO */

#kc-form-login button,
#kc-login,
input[type="submit"],
.ui-button,
.btn,
.btn-primary {

  width: 100% !important;
  max-width: 300px !important;
  height: 44px !important;

  background: #123edb !important;
  background-image: none !important;

  color: #ffffff !important;

  border: 1px solid #123edb !important;
  border-radius: 8px !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  cursor: pointer;

  box-shadow: 0 4px 10px rgba(18, 62, 219, 0.25) !important;

  transition: all 0.2s ease !important;
}

#kc-form-login button:hover,
#kc-login:hover,
input[type="submit"]:hover,
.ui-button:hover,
.btn-primary:hover {

  background: #071b68 !important;
  background-image: none !important;

  border-color: #071b68 !important;

  color: #ffffff !important;
}

#kc-form-login button:active,
#kc-login:active,
input[type="submit"]:active,
.ui-button:active,
.btn-primary:active {

  background: #051653 !important;
  color: #ffffff !important;
}

#kc-form-login button span,
#kc-login span,
.ui-button-text {

  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Links */
a {
  color: var(--azul-corporativo);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--azul-oscuro);
  text-decoration: underline;
}

/* Footer imagen */
.card-pf .image-footer p {
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

/* Errores */
#kc-content-wrapper .alert-error {
  background-color: #ffffff;
  border-color: #cc0000;
  color: #333333;
}

#kc-error-message .instruction {
  visibility: hidden;
}

/* Responsive */
@media (max-width: 992px) {

  .login-pf-page {
    flex-direction: column;
  }

  .login-pf-page .login-pf-page-header {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100vh;
  }

  .login-pf-page .card-pf {
    display: none;
  }
}

@media (max-height: 460px) {

  .login-pf-page,
  .login-pf-page .login-pf-page-header,
  .login-pf-page .card-pf {
    height: 100%;
  }
}

/* Junta ambos textos */
.login-pf-page .login-pf-page-header p {
    margin-top: 6px;
    margin-bottom: 10px;
}

/* Separa el último texto del formulario */
#kc-form {
    margin-top: 35px;
}