* {
    box-sizing: inherit;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(45deg, rgba(24,221,152,1) 0%, rgba(44,59,142,1) 100%);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    min-block-size: 100vh;
}

img{
    width: 5rem;
    margin: 2rem;
}

.grid {
  inline-size: 90%;
  margin-inline: auto;
  max-inline-size: 20rem;
}

.hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.icon {
  block-size: 1em;
  display: inline-block;
  fill: #494f57;
  inline-size: 1em;
  vertical-align: middle;
}


.text--center {
    text-align: center;
}

a {
    color: #fff; 
    outline: 0;
    text-decoration: none;
}

a:focus, a:hover {
    text-decoration: underline;
}

input {
    background-image: none;
    border: 0;
    color: inherit;
    font: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    transition: background-color 0.3s;
}

input[type="submit"] {
    cursor: pointer;
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form input[type="password"],
.form input[type="text"],
.form input[type="submit"] {
    inline-size: 100%;
}

.form__field {
    display: flex;
}

.form__input {
    flex: 1;
}

.login {
    color: #494f57;
    font-weight: 500;
}

.login label,
.login input[type="text"],
.login input[type="password"],
.login input[type="submit"] {
    border-radius: 0.5rem;
    padding: 1rem;
}

.login label {
    background-color: rgb(255, 255, 255, 0.5);
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    padding-inline: 1.25rem;
}

.login input[type="password"],
.login input[type="text"] {
    background-color: rgb(255, 255, 255, 0.75);
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.login input[type="password"]:focus,
.login input[type="password"]:hover,
.login input[type="text"]:focus,
.login input[type="text"]:hover {
    background-color: rgb(255, 255, 255);
}

.login input[type="submit"] {
    background-color: rgb(255, 181, 37);
    color: rgb(102, 105, 100);
    font-weight: 550;
    text-transform: uppercase;
}

.login input[type="submit"]:focus,
.login input[type="submit"]:hover {
    background-color: rgb(255, 181, 37, 0.8);
}

p {
    margin-block: 1.5rem;
}
