@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
}

body.ci-auth {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #0f172a;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 26px;
}

body.ci-auth ::selection {
  background: #ffe5cc;
  color: #0f172a;
}

.ci-auth-frame {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(20rem, 1.14fr);
  min-height: 100vh;
}

.ci-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  background: #0f172a;
  color: #f7fafc;
}

.ci-auth-logo {
  display: block;
  width: min(100%, 13.75rem);
  height: auto;
}

.ci-auth-purpose {
  max-width: 18rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 26px;
}

.ci-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
  background: #ffffff;
}

h1 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -0.03em;
}

.ci-auth-note {
  max-width: 36ch;
  margin: 0.5rem 0 2rem;
  color: #475569;
}

form {
  display: grid;
  gap: 1rem;
  max-width: 24rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 400;
  caret-color: #0f172a;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid #1d7e9f;
  outline-offset: 2px;
}

button {
  min-height: 2.75rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1e293b;
}

.ci-auth-alert {
  max-width: 24rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff0ee;
  color: #b42318;
}

@media (max-width: 767px) {
  .ci-auth-frame {
    grid-template-columns: 1fr;
  }

  .ci-auth-brand,
  .ci-auth-panel {
    padding: 1.5rem;
  }

  .ci-auth-brand {
    gap: 1.5rem;
  }

  .ci-auth-panel {
    justify-content: flex-start;
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: 30px;
    line-height: 38px;
  }
}
