* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

h1 {
  color: rgb(172, 200, 27);
  font-size: 2rem;
  margin-top: 20px;
  font-family: 'Marcellus', serif;
}

header img {
  width: 200px;
}

form {
  max-width: 500px;
  margin: 30px auto;
}

.welcome {
  padding-bottom: 20px;
  font-size: 1.4rem;
}

.form-input {
  position: relative;
  width: 70%;
  margin: 0 auto 20px;
}

.form-input input::placeholder {
  opacity: 0;
}

.form-input input {
  width: 100%;
  height: 60px;
  font-size: 2rem;
  padding: 10px;
  outline: none;
  border: 1px solid gray;
  box-sizing: border-box;
  border-radius: 5px;
}

.form-input input[type='password'] {
  font-size: 3rem;
}

.form-input label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: gray;
  letter-spacing: 1px;
  transition: 0.3s;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

.form-input input:focus + label,
.form-input input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 1.2rem;
  color: indigo;
  background: #fff;
  padding: 7px;
}

.form-input input:focus {
  border: 2px solid indigo;
  padding: 9px;
}

.button-mui {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  color: #ffffff;
  background-color: #3f51b5;
  border: none;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.button-mui:hover {
  background-color: #303f9f;
}

.button-mui:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(63, 81, 181, 0.2);
}

.button-mui:disabled {
  background-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.26);
  cursor: not-allowed;
  box-shadow: none;
}

.alert-mui {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 1.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

  max-width: 500px;
  margin: 30px auto;
}

.alert-mui.error {
  background-color: #fdecea;
  color: #d32f2f;
  border-color: #f5c6cb;
}

.alert-mui.success {
  background-color: #edf7ed;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.alert-icon {
  margin-right: 8px;
  font-size: 18px;
}

.alert-message {
  flex: 1;
}

.copy {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
  padding: 5px;
  display: block;
}

.copy img {
  margin: 0;
  padding: 0;
}

.copy:hover {
  background-color: #f0f0f0;
}
