:root {
  --primary-50: #f2e6e6;
  --primary-400: #d33f3f;
  --primary-500: #c22525;
  --primary-600: #ac1313;
  --primary-700: #900707;
  --primary-800: #710100;
  --background: rgb(255, 252, 252);
  --background: rgb(248, 248, 248); /* make your choise */
  --background-error: 
}

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

html {
  line-height: 1.5;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}
body {
  background-color: var(--background);
}

p,
span,
a,
button,
label {
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(75 85 99);
}

main {
  /* flex h-screen items-center justify-center */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.card {
  /* w-[min(90vw,450px)] mx-auto h-fit rounded-md p-10 shadow-md */
  background: white;
  width: min(90vw, 450px);
  margin: 0 auto;
  height: fit-content;
  border-radius: 0.375rem;
  padding: 2.5rem;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.card > p {
  margin-top: 1.5rem;
}
h2 {
  /* text-center */
  text-align: center;

  font-size: 1.25rem;
  font-weight: 500;
  color: rgb(31 41 55);

  margin-block-start: 0;
  margin-block-end: 0;
}
.button-group {
  /* mt-5 flex items-center justify-between flex-col 2xs:flex-row */
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 400px) {
  .button-group {
    flex-direction: row;
  }
}
button {
  /* bg-primary-800 hover:bg-primary-700 rounded-md px-10 py-1 text-white shadow-md transition-colors w-full 2xs:w-auto */
  background-color: rgb(113 1 0);
  width: 100%;
  border-radius: 0.375rem;
  border: 0;
  padding: 0.25rem 2.5rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
}
button.full-width {
  width: 100%;
  margin-top: 1.5rem /* 24px */;
}
button:hover {
  background-color: rgb(144 7 7);
}
@media (min-width: 400px) {
  button {
    width: auto;
  }
}
a {
  /* text-sm mt-3 2xs:mt-0 */
  font-size: 0.875rem /* 14px */;
  margin-top: 0.75rem /* 12px */;
  text-decoration: inherit;
}
a > svg {
  display: inline-block;
  height: 0.75rem /* 12px */;
}
a.center {
  display: block;
  margin-top: 1.5rem /* 24px */;
  text-align: center;
}
@media (min-width: 400px) {
  a {
    margin-top: 0px;
  }
}
form {
  /* mt-5 */
  margin-top: 1.5rem;
}
.error {
  /* text-red-600 text-sm */
  color: var(--primary-400);
  font-size: 1rem /* 16px */;
  font-weight: 500;
  background-color: #fee;
  padding: 4px;
  border-radius: 0.375rem;
}
.error:not(:first-child) {
  margin-top: 0.5rem;
}
.error > img {
  display: inline-block;
  height: 1rem;
  vertical-align: middle;
}

/** INPUT STYLING **/
.input-group {
  position: relative;
}
.input-group:not(:first-child) {
  margin-top: 1.25rem /* 12px */;
}
input {
  font-size: 1rem /* 16px */;
  padding: 10px 0;
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #757575;
}
input:focus {
  outline: none;
}
label {
  color: #999;
  font-size: 1rem /* 16px */;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  transition: 0.2s ease all;
}
input:focus ~ label,
input:valid ~ label,
input.has-value ~ label {
  top: -15px;
  left: 0;
  font-size: 0.8rem;
}
input:focus ~ label {
  color: var(--primary-600);
}
.bar {
  position: relative;
  display: block;
  width: 100%;
}
.bar:before {
  content: "";
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: var(--primary-600);
  transition: 0.2s ease all;
  left: 0;
}
input:focus ~ .bar:before {
  width: 100%;
}
