* {
  box-sizing: border-box;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

label {
  color: white;
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

p {
  color: seashell;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: #FFF;
  transition: color 0.3s;
}

a:hover {
  color: #FFD700;
}

.login {
  width: 90%;
  max-width: 360px;
  min-height: 450px;
  border: 1px solid #CCC;
  background: url(https://media4.giphy.com/media/BHNfhgU63qrks/giphy.gif) center center no-repeat;
  background-size: cover;
  margin: 20px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login .form {
  width: 100%;
  padding: 20px 25px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 20px;
}

.login .form h2 {
  color: #FFF;
  text-align: center;
  font-weight: normal;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.login .form input {
  width: 100%;
  height: 40px;
  margin-top: 15px;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.1);
  padding: 0 15px;
  color: #FFF;
  border-radius: 5px;
  font-size: 14px;
}

.login .form input:focus {
  border: 1px solid rgba(255,255,255,.8);
  outline: none;
}

::-webkit-input-placeholder {
  color: #DDD;
}

.login .form button.submit {
  width: 100%;
  height: 45px;
  background: rgba(255,255,255,.9);
  color: #444;
  font-size: 16px;
  margin-top: 25px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.login .form button.submit:hover {
  background: rgba(255,255,255,1);
}

/* Media queries para pantallas pequeñas */
@media (max-width: 400px) {
  .login {
    min-height: 400px;
    border-radius: 15px;
  }

  .login .form h2 {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .login .form input {
    height: 35px;
    font-size: 13px;
  }

  .login .form button.submit {
    height: 40px;
    font-size: 15px;
  }
}
