html,
body {
  height: 100%;
  --max-input-width: 400px;
}

body {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 25px;
  margin: auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.edit-container {
  min-width: 60%;
  padding: 20px 50px 20px 50px;
  margin: auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  max-width: 180px;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .edit-container {
    max-width: 90%;
    padding: 20px 20px 20px 20px;
  }
}

h2, h3, h4 {
  text-align: center;
}

h2 {
  font-weight: 500;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 1rem;

}

.field label {
  display: block;
  margin-bottom: 0.5rem;
}
.field.checkbox label {
  margin-bottom: 0;
}

.field em {
  font-size: 0.875rem;
  color: #6c757d;
}

.field input {
  display: block;
  width: 100%;
  max-width: var(--max-input-width);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out;
}

.field input[type="email"]:focus,
.field input[type="password"]:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.field input[type='checkbox'] {
  width: auto;
  margin-right: 0.5rem;
}

.field select {
  width: fit-content;
}

.field.checkbox {
  display: flex;
  align-items: center;
}

.actions {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.actions input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #0d6efd;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.actions input[type="submit"]:hover {
  background-color: #0b5ed7;
}

/* Style for devise links */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.subscription-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;

  a {
    max-width: 300px;
  }
}
