:root {
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
  background: #f3f5f8;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.container,
.auth-card,
.profile-card {
  width: min(100%, 520px);
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e0e5ee;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgb(24 39 75 / 8%);
}

.profile-card {
  width: min(100%, 720px);
}

h1,
h2 {
  margin-top: 0;
}

h2 {
  margin-top: 32px;
  font-size: 1.2rem;
}

.brand {
  margin: 0 0 10px;
  color: #49607f;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bac4d2;
  border-radius: 8px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgb(42 101 246 / 20%);
  border-color: #2a65f6;
}

button {
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #1f56d8;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #e9eef7;
  color: #21314d;
}

.form-message {
  min-height: 1.25rem;
  margin: 0;
  color: #b42318;
}

.success {
  color: #067647;
  font-weight: 600;
}

.error {
  color: #b42318;
}

.profile-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.profile-data {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 10px 20px;
  padding: 20px;
  background: #f7f9fc;
  border-radius: 10px;
}

.profile-data dt {
  color: #56647a;
}

.profile-data dd {
  margin: 0;
}

#backend-status {
  margin-top: 24px;
  padding: 16px;
  background: #eeeeee;
  border-radius: 8px;
}

@media (max-width: 560px) {
  .container,
  .auth-card,
  .profile-card {
    padding: 22px;
  }

  .profile-heading {
    display: grid;
  }

  .profile-data {
    grid-template-columns: 1fr;
  }
}
