/* css/reset.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}
ul[role=list],
ol[role=list] {
  list-style: none;
}
body {
  min-height: 100vh;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
img,
picture {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}
textarea:not([rows]) {
  min-height: 10em;
}
:target {
  scroll-margin-block: 5ex;
}

/* css/variables.css */
:root {
  --primary-color: #635dff;
  --primary-hover: #4b45cc;
  --text-color: #333;
  --light-gray: #e8e8e8;
  --error-color: #d73a49;
  --bg-color: #f9f9f9;
  --card-bg: white;
  --border-color: #e8e8e8;
  --text-muted: #666;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #7b74ff;
    --primary-hover: #635dff;
    --text-color: #e1e1e1;
    --light-gray: #2a2a2a;
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --border-color: #999;
    --text-muted: #999;
  }
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
}

/* css/typography.css */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.paragraph {
  color: var(--text-muted);
  font-size: 1rem;
}
.link-text {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
}
.link-text:hover {
  text-decoration: underline;
}
.inline-link {
  color: var(--primary-color);
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}
.terms-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.4;
}

/* css/utilities.css */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  padding-top: 4rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.paragraph {
  color: var(--text-muted);
  font-size: 1rem;
}
.form-box {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
}
.text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.text-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 116, 255, 0.1);
}
.button-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
}
.button-primary:hover {
  background-color: var(--primary-hover);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkbox-input {
  margin-top: 0.25rem;
}
.link-text {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
}
.link-text:hover {
  text-decoration: underline;
}
.login-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.inline-link {
  color: var(--primary-color);
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}
.section-divider {
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
}
.modal-container {
  background: var(--card-bg);
  border-radius: 8px;
  position: relative;
  z-index: 51;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
}
.close-button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}
.close-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.terms-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.4;
}
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  pointer-events: auto;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0.5rem auto;
}
.alert-info {
  background-color: rgba(99, 93, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.alert-error {
  background-color: rgba(215, 58, 73, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}
@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#flash-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  pointer-events: none;
}

/* css/forms.css */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.paragraph {
  color: var(--text-muted);
  font-size: 1rem;
}
.form-box {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
  overflow: visible;
}
.text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
  height: 42px;
}
.text-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 116, 255, 0.1);
}
.button-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
}
.button-primary:hover {
  background-color: var(--primary-hover);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkbox-input {
  margin-top: 0.25rem;
}
.link-text {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
}
.link-text:hover {
  text-decoration: underline;
}
.login-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.inline-link {
  color: var(--primary-color);
  text-decoration: none;
}
.inline-link:hover {
  text-decoration: underline;
}
.section-divider {
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
}
.modal-container {
  background: var(--card-bg);
  border-radius: 8px;
  position: relative;
  z-index: 51;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
}
.close-button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}
.close-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.terms-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.4;
}
.code-entry {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}
.code-input {
  width: 2.5rem;
  height: 3rem;
  padding: 0;
  font-size: 1.25rem;
  text-align: center;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s;
}
.code-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 116, 255, 0.1);
}
.code-input.error {
  border-color: var(--error-color);
}
.text-input.error {
  border-color: var(--error-color);
}
.text-input.error:focus {
  box-shadow: 0 0 0 2px rgba(215, 58, 73, 0.1);
}
.error-message,
.invalid-feedback {
  display: flex;
  align-items: center;
  color: var(--error-color);
  font-size: 0.75rem;
  background: #fff1f0;
  border-radius: 4px;
  border: 1px solid var(--error-color);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
}
@media (prefers-color-scheme: dark) {
  .error-message,
  .invalid-feedback {
    background: #2a1f1f;
  }
}
[phx-feedback-for] {
  position: relative;
  margin-top: 0;
  overflow: visible;
}
[phx-feedback-for].phx-form-error .text-input {
  border-color: var(--error-color);
}
[phx-feedback-for].phx-form-error .text-input:focus {
  box-shadow: 0 0 0 2px rgba(215, 58, 73, 0.1);
}
[phx-feedback-for].phx-form-error .error-message {
  display: block;
}
.invalid-feedback {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  height: calc(100% - 1rem);
  display: flex;
  align-items: center;
  color: var(--error-color);
  font-size: 0.75rem;
  background: #fff1f0;
  padding: 0 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--error-color);
  pointer-events: none;
  white-space: nowrap;
  transform: none;
  margin-left: 12px;
}
label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
@media (prefers-color-scheme: dark) {
  .invalid-feedback {
    background: #2a1f1f;
  }
}
.success-message {
  background-color: #f0fdf4;
  color: #15803d;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid #86efac;
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  .success-message {
    background-color: #052e16;
    border-color: #22c55e;
  }
}

/* css/app.css */
