@import url('/public/styles/variables.css');

* {
  margin: 0;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* Matches docusaurus' default text rendering styles */
html {
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizelegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.unauthenticated__background {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-8);
  background: radial-gradient(
      circle at 5% 80%,
      rgba(135, 84, 244, 0.3) 0%,
      rgba(135, 84, 244, 0) 100%
    ),
    radial-gradient(circle at 54% 9%, rgba(255, 215, 4, 0.1) 0%, rgba(255, 215, 4, 0) 100%),
    radial-gradient(circle at 100% 100%, rgba(0, 63, 157, 0.1) 0%, rgba(0, 63, 157, 0) 100%);
}

body,
html {
  margin: 0;
  width: 100%;
  height: 100%;
}

.unauthenticated__background {
  min-height: 100%;
}

.center {
  justify-content: center;
}

.unauthenticated__content__title {
  font-family: Raleway, 'Inter', sans-serif;
}

.unauthenticated__content {
  background-color: var(--ifm-color-gray-100);
  padding: var(--s-3);
  border-radius: var(--br-1);
}

.button > img {
  margin-right: var(--s-1_2);
  width: var(--s-3);
  height: var(--s-3);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3_2);
}

button {
  background-color: transparent;
}

.button {
  align-items: center;
  border-radius: var(--br-1);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: var(--s-1) var(--s-2);
  text-align: center;
  user-select: none;
  color: black;
  font-size: 1rem;
  border: 1px var(--ifm-color-primary-lightest) solid;
  font-weight: 500;
  transition: all 150ms;
}

.button:hover:not([disabled]) {
  background-color: var(--ifm-color-primary-lightest);
}

.button--primary {
  border-color: var(--ifm-color-secondary-light);
  background-color: var(--ifm-color-secondary-light);
}

.button--primary:hover:not([disabled]) {
  background-color: var(--ifm-color-secondary);
  border-color: var(--ifm-color-secondary);
}

.button > img {
  margin-right: var(--s-1);
  width: var(--s-2);
  height: var(--s-2);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid hsl(211, 13%, 65%);
}

.row {
  display: flex;
  flex-direction: row;
  gap: var(--s-1);
  align-items: center;
  width: 100%;
}

.title-row {
  width: 300px;
  align-self: center;
}

.space-between {
  justify-content: space-between;
}

.terms {
  padding: var(--s-4);
  background-color: var(--ifm-color-gray-0);
  border-radius: var(--br-1);
  width: 800px;
  overflow: scroll;
}

.select-project-form {
  overflow: scroll;
}

.choose_project__button {
  display: flex;
  font-size: 1rem;
  background-color: var(--ifm-color-gray-0);
  border: none;
  border-radius: var(--br-1_2);
  cursor: pointer;
  flex-direction: column;
  padding: var(--s-3) var(--s-4);
  text-transform: none;
  transition: all 150ms;
  width: 540px;
}

@media screen and (max-width: 996px) {
  .choose_project__button {
    width: 65vw;
  }

  .title-row {
    width: 65vw;
  }
}

.choose_project__button .choose_project__icon {
  border-radius: var(--br-1);
  border-width: 1px;
  border-style: solid;
  border-color: var(--ifm-color-primary-lightest);
  transition: all 150ms;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-1);
}

.choose_project__button:hover .choose_project__icon {
  background-color: var(--ifm-color-secondary-light);
  border-color: var(--ifm-color-secondary-light);
}

.choose_project__button .choose_project__icon::before {
  content: 'Open';
  width: 0px;
  font-weight: 500;
  line-height: 1rem;
  transition: width 150ms;
  opacity: 0;
}

.choose_project__button:hover .choose_project__icon::before {
  width: 48px;
  opacity: 1;
}

.choose_project__button .choose_project__icon:hover {
  background-color: var(--ifm-color-secondary);
  border-color: var(--ifm-color-secondary);
}

.choose_project__button:hover {
  background-color: var(--ifm-color-secondary-lightest);
}

/* Required to prevent white text on a white background on iOS */
.choose_project__button h2,
.choose_project__button p {
  color: black;
}

.choose_project__expiry {
  font-size: 0.75rem;
}

.email-row {
  margin: var(--s-3) 0;
}

.text-bold {
  font-weight: 600;
}

.text-normal {
  font-weight: 400;
}

span,
h1,
h2,
h3,
p,
a,
li,
label {
  font-weight: 300;
}

button:disabled,
input:disabled,
label:has(input:disabled) {
  cursor: not-allowed;
  filter: grayscale(1);
}

label:has(input),
input {
  cursor: pointer;
}

input[type='checkbox'] {
  appearance: none;
  background-color: var(--ifm-color-primary-lightest);
  margin: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--br-1_2);
  display: grid;
}

input[type='checkbox']::before {
  content: '';
  opacity: 0;
  transition: all 150ms;
  background-image: url(/public/images/icons/ci/tick.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 2px;
}

input[type='checkbox']:checked::before {
  opacity: 1;
}
