@import "./_root.css";

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden] {
  display: none;
}
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
a:focus {
  outline: thin dotted;
}
a:active,
a:hover {
  outline: 0;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
mark {
  background: #ff0;
  color: #000;
}
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}
pre {
  white-space: pre-wrap;
}
q {
  quotes: "\201C""\201D""\2018""\2019";
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 0;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}
button,
input {
  line-height: normal;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  color: #57585c;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.js body.render {
  opacity: 1;
}

/* Page Loader */
.js .loading::before {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e1e5e8;
}

.js .loading::after {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  background: #000;
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: #000;
  outline: none;
}

a:hover,
a:focus {
  color: #4173a7;
  outline: none;
  text-decoration: none;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
}

.content {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #fff;
  -webkit-box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  padding: 1.5rem;
  border-radius: 12px;
}

/* Header */
.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  align-items: center;
  align-self: start;
  grid-area: header;
  justify-self: start;
  margin: 0 0 1rem 0;
}

.header__title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.info {
  flex: none;
  width: 100%;
  margin: 1rem 0;
  color: #000;
}

.form {
  margin: 0;
  position: relative;
}

.form__title {
  font-size: 1.5rem;
  margin: 0 0 3rem;
}

.form__item {
  align-items: center;
}

.form__item:not(:last-child) {
  margin: 0 0 1.5rem;
}

.form__label {
  line-height: 26px;
  font-weight: 500;
}

.form__input {
  padding: 1rem;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: var(--brand-color-bg-input-primary);
}

.form__input:focus {
  border-color: #000;
  outline: none;
}

.form__link {
  color: var(--brand-color-primary);
  font-weight: bold;
  white-space: nowrap;
  padding: 8px 8px;
}

.form__link:hover,
.form__link:focus {
  background-color: var(--brand-color-bg-secondary);
  border-radius: 30px;
  text-decoration: none;
}

.form__button {
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  background: var(--brand-color-primary);
  border: 1px solid var(--brand-color-primary);
  border-radius: 6px;
  padding: 1rem;
}

.form__button:focus {
  outline: none;
}

.create-account-callout {
  margin-top: 15px;
  padding: 16px 0;
  border: 1px solid #d8dee2;
  border-radius: 5px;
}

.label-link {
  float: right;
  font-size: 16px;
}

.pro-tip {
  font-size: 1em;
  padding: 0;
  margin-top: 3rem;
}

.group-flex {
  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: space-between;
  justify-content: space-between;

  display: flex;

  column-gap: 10px;
  gap: 10px;
}

.flex-65 {
  flex: 65;
}

.flex-35 {
  flex: 35;
}

.form .full-width {
  width: 100%;
  text-align: center;
}

.toggle-wrapper {
  position: relative;
}

.form .toggle-password {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  right: 0;
  top: 22.5%;
  bottom: auto;
  padding: 6px 15px;
  border-left: 1px solid #d2d8d8;
  font-size: 0.875rem;
  text-decoration: none;
  color: #343642;
  z-index: 1;
}

.response {
  display: inline;
  background: var(--brand-color-primary);
  padding: 1rem 1.4rem;
  border-radius: 8px;
  width: 25rem;
  font-size: 14px;
  color: var(--white);
  position: fixed;
  bottom: -5rem;
  left: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s ease;
}

.response--show {
  bottom: 20px;
  margin: 0 auto;
  opacity: 1;
  z-index: 3;
}

@media only screen and (max-width: 700px) {
  .response {
    left: 50%;
    width: 85%;
    font-size: 12px;
    transform: translateX(-50%);
  }
}

/* Error Styling */

.form__item .error-message {
  display: none;
}

.error label {
  color: #cc0033;
}

.error .form__input {
  background-color: #fce4e4;
  border: 1px solid #cc0033;
  outline: none;
}

.error .error-message {
  display: inline-block;
  color: #cc0033;
}

input[type="password"]:not(:placeholder-shown):invalid {
  color: #cc0033;
  outline-color: #cc0033;
}

@media screen and (max-width: 45em) {
  .content {
    max-width: 100%;
    margin: auto;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0;
  }
  .form .toggle-password {
    top: 21.5%;
  }
}
