* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  background: #14161a;
  color: #e8e6e3;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.card {
  width: min(22rem, calc(100vw - 2rem));
  padding: 2rem;
  background: #1d2026;
  border: 1px solid #2c3038;
  border-radius: 12px;
}

h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #2c3038;
}

.tab {
  flex: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9aa0a6;
  font: inherit;
  cursor: pointer;
}

.tab.active {
  color: #e8e6e3;
  border-bottom-color: #7aa2f7;
}

label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: #9aa0a6;
}

input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  background: #14161a;
  border: 1px solid #2c3038;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}

input:focus {
  outline: none;
  border-color: #7aa2f7;
}

.submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  background: #7aa2f7;
  border: none;
  border-radius: 8px;
  color: #14161a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.error {
  min-height: 1.5rem;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: #f7768e;
}
