/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #061327;
  font-family: "Source Sans Pro", Arial, sans-serif;
}

/*
  Evita que los estilos predeterminados de AdminLTE
  interfieran con la distribución.
*/

.login-page,
.register-page {
  display: flex;
  min-height: 100vh;
  padding: 0;
  background: transparent;
}

.login-page > *,
.register-page > * {
  flex-shrink: 0;
}

/* =========================================================
   FONDO
========================================================= */

.certificate-background {
  position: fixed;
  inset: 0;
  z-index: -20;

  background-image:
    linear-gradient(
      90deg,
      rgba(2, 15, 36, 0.96) 0%,
      rgba(3, 18, 42, 0.90) 25%,
      rgba(6, 27, 55, 0.65) 55%,
      rgba(4, 17, 38, 0.69) 100%
    ),
    url("../../img/template/back.png");

  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.certificate-background::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 60% 35%,
      rgba(45, 130, 255, 0.16),
      transparent 35%
    ),
    radial-gradient(
      circle at 25% 65%,
      rgba(0, 61, 153, 0.14),
      transparent 38%
    );
}

.certificate-background::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.05) 65%,
    rgba(0, 8, 24, 0.28) 100%
  );
}

/* =========================================================
   DISTRIBUCIÓN PRINCIPAL
========================================================= */

.certificate-layout {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 58px);

  margin: 0 auto;
  padding: 42px 65px 32px;

  display: grid;
  grid-template-columns:
    minmax(300px, 0.95fr)
    minmax(400px, 480px)
    minmax(40px, 0.25fr);

  align-items: center;
  gap: 58px;

  flex: 1;
}

/* =========================================================
   INFORMACIÓN LATERAL
========================================================= */

.certificate-side {
  width: 100%;
}

.certificate-side-content {
  width: 100%;
  max-width: 410px;
}

.certificate-side h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -1px;
}

.certificate-side h1 span,
.certificate-side h1 strong {
  display: block;
}

.certificate-side h1 span {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.certificate-side h1 strong {
  margin-top: 6px;

  color: #3488ff;

  font-size: 57px;
  font-weight: 700;
  line-height: 1;
}

.certificate-side-line {
  width: 76px;
  height: 4px;

  margin: 31px 0 42px;

  border-radius: 30px;

  background: linear-gradient(
    90deg,
    #54a2ff,
    #1474ff
  );

  box-shadow: 0 0 16px rgba(42, 128, 255, 0.38);
}

.certificate-side-description {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  width: 100%;
  max-width: 340px;
}

.certificate-side-icon {
  flex: 0 0 36px;

  color: #3488ff;

  font-size: 31px;
  text-align: center;
}

.certificate-side-description p {
  margin: 0;

  color: rgba(255, 255, 255, 0.90);

  font-size: 17px;
  line-height: 1.65;
}

/* =========================================================
   SECCIÓN DEL FORMULARIO
========================================================= */

.certificate-form-section {
  width: 100%;
  max-width: 480px;

  align-self: center;

  transform: translateY(-12px);
}

/* =========================================================
   TARJETA
========================================================= */

.certificate-card {
  position: relative;

  width: 100%;

  padding: 62px 46px 27px;

  overflow: visible;

  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 27px;

  background: rgba(248, 250, 253, 0.92);

  box-shadow:
    0 30px 75px rgba(0, 7, 24, 0.42),
    0 0 45px rgba(37, 121, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.certificate-card-glow {
  position: absolute;
  top: -35px;
  left: 50%;

  width: 180px;
  height: 100px;

  border-radius: 50%;

  background: rgba(30, 116, 255, 0.22);

  filter: blur(36px);

  transform: translateX(-50%);

  pointer-events: none;
}

/* =========================================================
   ICONO SUPERIOR
========================================================= */

.certificate-main-icon {
  position: absolute;

  top: -48px;
  left: 50%;

  width: 99px;
  height: 99px;

  padding: 7px;

  border-radius: 50%;

  background: rgba(226, 238, 255, 0.95);

  box-shadow:
    0 15px 28px rgba(8, 76, 185, 0.30),
    0 0 0 7px rgba(72, 149, 255, 0.10);

  transform: translateX(-50%);
}

.certificate-main-icon-inner {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(
    145deg,
    #4298ff 0%,
    #1670f4 55%,
    #0756d8 100%
  );

  color: #ffffff;

  font-size: 37px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 7px 18px rgba(2, 66, 175, 0.24);
}

/* =========================================================
   CABECERA
========================================================= */

.certificate-card-header {
  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  text-align: center;
}

.certificate-card-header h2 {
  margin: 15px 0 5px;

  color: #091c3c;

  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.certificate-card-header p {
  margin: 0;

  color: #74849b;

  font-size: 14px;
  line-height: 1.45;
}

.certificate-header-line {
  width: 68px;
  height: 3px;

  margin: 22px auto 25px;

  border-radius: 30px;

  background: linear-gradient(
    90deg,
    #57a5ff,
    #0863f0
  );

  box-shadow: 0 0 10px rgba(37, 126, 255, 0.20);
}

/* =========================================================
   CUERPO DEL FORMULARIO
========================================================= */

.certificate-card-body {
  padding: 0;
}

/* =========================================================
   CAMPOS
========================================================= */

.certificate-field {
  margin-bottom: 18px;
}

.certificate-field label {
  display: block;

  margin-bottom: 8px;

  color: #10213e;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.certificate-field label i {
  width: 21px;

  margin-right: 5px;

  color: #536c8c;

  text-align: center;
}

.certificate-input {
  position: relative;

  width: 100%;
  height: 50px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border: 1px solid #d4dfec;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.90);

  box-shadow:
    0 4px 10px rgba(8, 44, 94, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.certificate-input:hover {
  border-color: #b9c9dc;
  background: #ffffff;
}

.certificate-input:focus-within {
  border-color: #2e82fb;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(46, 130, 251, 0.12),
    0 10px 24px rgba(10, 74, 166, 0.10);

  transform: translateY(-1px);
}

.certificate-input-icon {
  width: 52px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 52px;

  border-right: 1px solid #e0e7f0;

  background: rgba(245, 248, 252, 0.90);
  color: #526b8a;

  font-size: 17px;
}

.certificate-input input {
  width: 100%;
  height: 100%;

  padding: 0 16px;

  border: 0;
  outline: 0;

  background: transparent;
  color: #1b2c43;

  font-family: inherit;
  font-size: 14px;
}

.certificate-input input::placeholder {
  color: #9aabc0;
  opacity: 1;
}

.certificate-input input:-webkit-autofill,
.certificate-input input:-webkit-autofill:hover,
.certificate-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b2c43;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

/* =========================================================
   BOTÓN
========================================================= */

.certificate-button {
  position: relative;

  width: 100%;
  height: 54px;

  margin-top: 22px;

  overflow: hidden;

  border: 0;
  border-radius: 15px;
  outline: none;

  background: linear-gradient(
    100deg,
    #3790ff 0%,
    #176eff 52%,
    #0646df 100%
  );

  color: #ffffff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;

  box-shadow:
    0 14px 27px rgba(5, 83, 222, 0.29),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.certificate-button::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 75%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );

  transform: skewX(-22deg);

  transition: left 0.65s ease;
}

.certificate-button:hover {
  color: #ffffff;

  filter: brightness(1.05);

  transform: translateY(-2px);

  box-shadow:
    0 18px 33px rgba(5, 83, 222, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.certificate-button:hover::before {
  left: 145%;
}

.certificate-button:active {
  transform: translateY(0);
}

.certificate-button:focus {
  box-shadow:
    0 0 0 4px rgba(38, 120, 255, 0.22),
    0 14px 27px rgba(5, 83, 222, 0.29);
}

.certificate-button:disabled {
  cursor: not-allowed;
  opacity: 0.82;
  transform: none;
}

.certificate-button i {
  margin-right: 10px;
}

.certificate-button-loading {
  display: none;
}

/* =========================================================
   AYUDA
========================================================= */

.certificate-help {
  margin-top: 23px;
}

.certificate-help-line {
  width: 100%;
  height: 1px;

  margin-bottom: 18px;

  background: linear-gradient(
    90deg,
    transparent,
    #d6e0eb 15%,
    #d6e0eb 85%,
    transparent
  );
}

.certificate-help-content {
  text-align: center;

  color: #677991;

  font-size: 13px;
  line-height: 1.5;
}

.certificate-help-content i {
  margin-right: 7px;
  color: #657c99;
}

.certificate-help-content a {
  margin-left: 4px;

  color: #075ff0;

  font-weight: 700;
  text-decoration: underline;
}

.certificate-help-content a:hover {
  color: #004bbf;
}

/* =========================================================
   MENSAJES DEL CONTROLADOR
========================================================= */

.certificate-card .alert {
  margin-top: 17px;
  margin-bottom: 0;

  padding: 10px 13px;

  border-radius: 11px;

  font-size: 13px;
}

.certificate-card .alert-danger {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.certificate-card .alert-success {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

/* =========================================================
   FOOTER GLASS
========================================================= */

.certificate-footer {
  width: 100%;
  min-height: 58px;

  padding: 11px 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  flex-shrink: 0;

  background: rgba(3, 19, 45, 0.77);

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.72);

  font-size: 12px;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 -8px 30px rgba(0, 7, 23, 0.15);
}

.certificate-footer-left,
.certificate-footer-center,
.certificate-footer-right {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.certificate-footer-left i,
.certificate-footer-right i {
  margin-right: 8px;
}

.certificate-footer-center {
  justify-content: center;
}

.certificate-footer-center a {
  margin-left: 6px;

  color: #3b8fff;

  font-weight: 700;
  text-decoration: none;
}

.certificate-footer-center a:hover {
  color: #6eacff;
}

.certificate-footer-separator {
  margin: 0 14px;

  color: rgba(255, 255, 255, 0.34);
}

/* =========================================================
   PANTALLAS CON POCA ALTURA
========================================================= */

@media (max-height: 760px) and (min-width: 901px) {

  .certificate-layout {
    padding-top: 30px;
    padding-bottom: 23px;
  }

  .certificate-form-section {
    transform: translateY(-4px);
  }

  .certificate-card {
    padding-top: 56px;
    padding-bottom: 23px;
  }

  .certificate-main-icon {
    top: -43px;
    width: 90px;
    height: 90px;
  }

  .certificate-card-header h2 {
    margin-top: 10px;
  }

  .certificate-header-line {
    margin-top: 18px;
    margin-bottom: 21px;
  }

  .certificate-field {
    margin-bottom: 15px;
  }

  .certificate-help {
    margin-top: 19px;
  }

  .certificate-help-line {
    margin-bottom: 14px;
  }

}

/* =========================================================
   LAPTOPS Y TABLETS HORIZONTALES
========================================================= */

@media (max-width: 1200px) {

  .certificate-layout {
    max-width: 1100px;

    padding-left: 35px;
    padding-right: 35px;

    grid-template-columns:
      minmax(250px, 0.75fr)
      minmax(390px, 460px);

    gap: 42px;
  }

  .certificate-side h1 span {
    font-size: 41px;
  }

  .certificate-side h1 strong {
    font-size: 49px;
  }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  body {
    overflow-y: auto;
  }

  .certificate-layout {
    min-height: auto;

    padding: 92px 20px 42px;

    display: block;
  }

  .certificate-side {
    display: none;
  }

  .certificate-form-section {
    width: 100%;
    max-width: 470px;

    margin: 0 auto;

    transform: none;
  }

  .certificate-footer {
    justify-content: center;

    padding: 16px 20px;
  }

  .certificate-footer-left,
  .certificate-footer-right {
    display: none;
  }

}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 576px) {

  .certificate-layout {
    padding: 78px 13px 30px;
  }

  .certificate-card {
    padding: 57px 21px 23px;

    border-radius: 22px;
  }

  .certificate-main-icon {
    top: -40px;

    width: 82px;
    height: 82px;

    padding: 6px;
  }

  .certificate-main-icon-inner {
    font-size: 29px;
  }

  .certificate-card-header h2 {
    margin-top: 4px;

    font-size: 21px;
  }

  .certificate-card-header p {
    font-size: 13px;
  }

  .certificate-header-line {
    width: 58px;

    margin-top: 18px;
    margin-bottom: 21px;
  }

  .certificate-field {
    margin-bottom: 16px;
  }

  .certificate-field label {
    font-size: 13px;
  }

  .certificate-input {
    height: 47px;
  }

  .certificate-input-icon {
    width: 47px;
    flex-basis: 47px;

    font-size: 16px;
  }

  .certificate-input input {
    padding: 0 12px;

    font-size: 13px;
  }

  .certificate-button {
    height: 50px;

    margin-top: 19px;

    font-size: 15px;
  }

  .certificate-help {
    margin-top: 20px;
  }

  .certificate-footer {
    min-height: 58px;

    padding: 14px 10px;

    font-size: 11px;
    text-align: center;
  }

  .certificate-footer-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .certificate-footer-separator {
    display: none;
  }

}