/*
  CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
#root,
#__next,
#app {
  isolation: isolate;
}

/*
  App Styles
*/
:root {
  --radius-container: 0.6rem;
}
body {
  --page-bg: #e1e6f0;
  background: var(--page-bg);
  color: #1e1f22;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.narrow {
  max-width: 50ch;
  margin: auto;
}
.wide {
  max-width: 90ch;
  margin: auto;
}

.columns {
  display: grid;
  grid-template-columns: 30ch 1fr;
  gap: 3rem;
}
.gap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.small-gap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.gap-above-to-small {
  margin-top: -0.8rem;
}

.box {
  border-radius: var(--radius-container);
  background: #eef1f7;
  padding: 0.75rem 1.5rem;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.menu ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.menu a {
  border-radius: var(--radius-container);
  display: inline-block;
  padding: 0.5rem 0.75rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.menu a:hover {
  background: #edeff2;
}

.box-title {
  font-size: 1.5rem;
  font-weight: 600;
}
.box-subtitle {
  font-size: 1.15rem;
  opacity: 0.8;
  font-weight: normal;
}

#logomark {
  padding: 2rem 1rem;
  font-size: 3rem;
  border-radius: var(--radius-container);
  text-align: center;
  margin: 2rem auto 2rem;
}

.client-logo {
  max-height: 5rem;
  margin: 4rem auto;
  border-radius: 1rem;
}

.text-input-fieldset {
  border: none;
  background: white;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-container);
  padding: 0.5rem 0.75rem;
}
.text-input-fieldset label {
  font-size: 0.8rem;
  opacity: 0.85;
}
.text-input-fieldset input {
  background: none;
  border: none;
  color: inherit;
  padding: 0.1rem 0;
}
.text-input-fieldset input:focus {
  outline: none;
}
.text-input-fieldset:focus-within {
  outline: 2px solid currentColor;
}

.input-button {
  width: 100%;
  border: none;
  border-radius: var(--radius-container);
  background: #5d51ae;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.text-btn {
  text-align: center;
  display: inline-block;
  text-decoration: none;
  width: 100%;
  border: none;
  border-radius: var(--radius-container);
  color: #5d51ae;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.messages {
  padding: 0;
  list-style-type: none;
  display: grid;
  gap: 1rem;
}

.messages li {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.messages li svg {
  flex-shrink: 0;
  height: 1.75rem;
  width: 1.75rem;
}
.messages .msg-error {
  fill: #b92f2f;
}

@media (prefers-color-scheme: dark) {
  body {
    --page-bg: #282a33;
    color: white;
  }
  .menu a:hover {
    background: #333540;
  }
  .box {
    background: rgb(51, 53, 64);
  }
  .text-input-fieldset {
    background: #434551;
  }
  .messages .msg-error {
    fill: #d59191;
  }
}

.divider {
  text-align: center;
  position: relative;
}
.divider > span {
  background: var(--page-bg);
  padding: 0 .3rem;
  z-index: 1;
  position: relative;
}
.divider::after {
  content: "";
  height: 1px;
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  background: currentColor;
  opacity: .2;
}
