:root {
  --color-light: #ecf1f4;
  --color-lighter: #fafcfe;
  --color-white: #ffffff;
  --color-background: #fafcfe;
  --color-field-border: #ecf1f4;
  --color-field-disabled: #f3f3f3;
  --color-field-background: #fafcfe;

  --color-primary: #4038d9;
  --color-primary-hover: #8484f0;
  --color-primary-active: #2d00af;
  --color-over-primary: #ffffff;

  --color-danger-background: #d14343;
  --color-danger-hover: #ed6162;
  --color-danger-active: #b43532;
  --color-over-danger: #ffffff;

  --color-error-text: #d0011b;
  --color-error-background: #fae4e7;

  font-size: 6px; /* Unit Size */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  background-color: var(--color-background);
}

body {
  font-size: 14px;
  min-height: 100vh;
  margin: 0;
  padding: 8px;
  display: grid;
  align-content: center;
}

* {
  box-sizing: border-box;
}

.stack-1 {
  gap: 1rem;
}
.stack-2 {
  gap: 2rem;
}
.stack-3 {
  gap: 3rem;
}
.stack-4 {
  gap: 4rem;
}
.stack-5 {
  gap: 5rem;
}
.stack-6 {
  gap: 6rem;
}
.stack-1,
.stack-2,
.stack-3,
.stack-4,
.stack-5,
.stack-6 {
  display: grid;
}

.my-3 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.padded-icon {
  margin: 5px 15px 5px 0;
  float: left;
}

dialog, .container {
  border-radius: 6px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light);
}

dialog {
  width: 430px;
  padding: 5rem;
}

.container {
  padding: 7rem 5rem;
  margin: 0 auto;
  padding: 7rem 5rem;
  border-radius: 6px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light);

  max-width: 460px;
  width: 100%;
}

@media (max-width: 460px) {
  :root {
    background-color: var(--color-white);
  }

  dialog {
    width: 100%;
    height: 100%;
  }

  .container {
    width: 100%;
    background-color: none;
    border: none;
    padding: 5rem 3rem;
  }
}

.container > p {
  margin-bottom: 5rem;
}

.container > img {
  display: block;
  margin: 0 auto;
}

.error-alert {
  background-color: var(--color-error-background);
  color: var(--color-error-text);
  padding: 3rem;
  /* border-radius: 5px; */
  border-left: 2px solid var(--color-error-text);
}

h1 {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin: 5rem 0 3rem 0;
}

.field-help-link {
  padding-top: 2rem;
  float: right;
}

a, .link-btn {
  color: var(--color-primary);
}

.link-btn {
  background: none;
  border: none;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.link-small {
  font-size: 14px;
}

dl {
  margin-bottom: 7rem;
}

dt {
  color: #5d5d7a;
  font-size: 14px;
  margin-bottom: 1rem;
}

dd {
  font-weight: 700;
  margin: 0 0 4rem 0;
}

dd:last-child {
  margin: 0;
}

label {
  display: block;
  font-weight: 700;
}

label > input {
  margin-top: 1rem;
}

button:not(.link-btn),
.btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 700;
  font-size: 16px;
  display: block;
  width: 100%;
  padding: 2rem 3rem;
  border: none;
  border-radius: 6px;
  background-color: var(--color-primary);
  color: var(--color-over-primary);
  cursor: pointer;

  /* for a.btn */
  text-align: center;
  text-decoration: none;
}

button:not(.link-btn):hover,
.btn:hover {
  background-color: var(--color-primary-hover);
}

button:not(.link-btn):active,
.btn:active {
  background-color: var(--color-primary-active);
}

button:not(.link-btn).btn-danger,
.btn.btn-danger {
  background-color: var(--color-danger-background);
  color: var(--color-over-danger);
}

button:not(.link-btn).btn-danger:hover,
.btn.btn-danger:hover {
  background-color: var(--color-danger-hover);
}

button:not(.link-btn).btn-danger:active,
.btn.btn-danger:active {
  background-color: var(--color-danger-active);
}

input,
select {
  display: block;
  font-size: 16px;
  width: 100%;
  border: 1px solid var(--color-field-border);
  border-radius: 6px;
  background-color: var(--color-lighter);
  padding: 2rem 3rem;
}

input:disabled {
  background-color: var(--color-field-disabled);
}

:focus-visible {
  outline-color: var(--color-primary-hover);
}

#org-select-dialog {
  height: 600px;
  overflow: auto;
}

.org-select-choice {
  color: black;
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 2rem 3rem;
  border: 1px solid var(--color-field-border);
  cursor: pointer;
  margin-top: 1rem;
}

.org-select-choice:hover {
  background-color: var(--color-lighter);
}