@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');

:root {
  --primary-color: #006;
  --secondary-color: #5599ee;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0; }

body {
  font-family: 'Lato', sans-serif;
  color: #333; }

.card {
    padding:0 ;
    margin: 1.5em;  }

input {
  font-size: 1em;
  margin-top: 0.5em;
}

input[type='text'],
input[type='password'] {
  font-size: 1em;
  border: 0;
  border-bottom: 1px solid #333;
  width: 100%;
  padding: 10px;
}

input[type='submit'] {
  border: 0;
  padding: .5em 2em;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  display: block;
  margin : 2em auto;
  letter-spacing: 3px;
  text-transform: uppercase;
}

input[type='submit']:hover {
  background-color: var(--secondary-color);;
}

input[type=checkbox] {
    border-radius: 4px;
    height: 20px;
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: .3em .3em .3em 0;
}

.checkbox{
    font-weight: bold;
    margin: 1em 0;
}

.codigo img {
    height: 40px;
    margin-top: 20px; }

.logo img {
    width: 100%; 
    margin: 0 0 1.5em 0; }

.showcase-text {
  display: none; }

.mensaje-box {
    padding: 1em;
    margin: 1em auto;
    max-width: 600px; }

.mensaje-box p {
    margin: .5em 0; }

.mensaje-error {
    width: 100%;
    font-weight: bold;
    padding: .2em;
    z-index: 99;
    background-color: red;
    color: white;
    position: fixed;
    top: 0; }

.mensaje-error p {
    padding: .2em; }

.footer { 
  font-size: .6em; 
  padding-top: 2em;
  text-align: center; }

@media only screen and (min-width: 880px) {

.checkbox {
    display: none; }

.logo img {
    width: 100%; 
    margin: 1.5em 0 ; }

.card {
    background-color: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 10px;
    max-width: 800px; }

input {
  margin-top: 0; }

input[type='submit'] {
  margin-top: 0; }

.container {
    min-width: 1100px;
    margin: 0 auto;
    overflow: auto;
    padding: 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    height: 100%;
    min-width: 1100px; }

/* Showcase */
.showcase {
    height: 380px;
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
    min-width: 1100px;
    display: block; }

.showcase h1 {
    font-size: 40px;
    margin-top: 80px; }

.showcase-text {  
  display: block;
  font-weight: 300;
  line-height: 1.2;
  margin: 10px 0; }

.showcase-text p {
    margin-top: 10px; }

.showcase-form .form-control {
  margin: 3em 0; }

.showcase .grid {
    overflow: visible;
    grid-template-columns: 55% auto;
    gap: 30px; }

.showcase-text { animation: slideInFromLeft 1s ease-in; }

.showcase-form {    
  grid-row: span 2;
  position: relative;
  top: 50px;
  height: 440px;
  width: 340px;
  padding: 0 30px;
  z-index: 100;
  justify-self: flex-end;
  animation: slideInFromRight 1s ease-in; }

.showcase-form .form-control {
  margin: .8em 0; }

.showcase-form input {
  font-size: 1.1em; }

.showcase-form input[type='text'],
.showcase-form input[type='password'] {
  border: 0;
  border-bottom: 1px solid #333;
  width: 100%;
  padding: 3px; }

.showcase-form input:focus {
  outline: none; }

.showcase::before,
.showcase::after {
  content: '';
  position: absolute;
  height: 140px;
  bottom: -80px;
  right: 0;
  left: 0;
  background: white;
  transform: skewY(-3deg);
  -webkit-transform: skewY(-3deg);
  -moz-transform: skewY(-3deg);
  -ms-transform: skewY(-3deg); }

.codigo img {
    height: 50px;
    margin-top: 20px; }

.mensaje-error {
    padding: 1em;
    align-self: end;
    position: relative;
    max-width: 500px; }

.mensaje-error p {
    padding: .5em; }

.mensaje-error { animation: slideInFromLeft 1s ease-in; }

/* Animations */

@keyframes slideInFromLeft {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
  }

@keyframes slideInFromRight {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
  }

@keyframes slideInFromTop {
  0% { transform: translateY(-100%); }
  100% { transform: translateX(0); }
  }

@keyframes slideInFromBottom {
  0% { transform: translateY(100%); }
  100% { transform: translateX(0); }
  }

}

