Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

7.0 KB
Raw Blame
@use "../auth-common" as auth;
@use "../../../../styles/mixins.scss";

.header {
  @include auth.auth-header;
}

.loginCard {
  form {
    @include auth.auth-inputs;
    @include auth.auth-button;
  }
}

.passwordLabelRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.375rem;

  label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hi-text);
    cursor: pointer;
  }

  a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hi-color-text-muted);
    transition: color 0.15s ease;

    &:hover {
      color: var(--mantine-color-secondary-5);
    }
  }
}

.ticketLookup {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--hi-color-gray-2);

  @include mixins.respond-below(sm) {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

.ticketLookupTrigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hi-color-text-muted);
  transition: color 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;

  @include mixins.respond-below(sm) {
    font-size: 0.8125rem;
  }

  span {
    flex: 1;
    text-align: left;
  }

  &:hover {
    color: var(--hi-text);
  }

  &[data-expanded="true"] {
    color: var(--hi-text);
  }

  svg:first-child {
    opacity: 0.7;
  }
}

.chevron {
  transition: transform 0.25s ease;
  opacity: 0.5;

  &[data-expanded="true"] {
    transform: rotate(180deg);
  }
}

.ticketLookupContent {
  padding-top: 1rem;
}

.ticketLookupForm {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;

  @include mixins.respond-below(sm) {
    flex-direction: column;
    align-items: stretch;
  }

  :global(.mantine-TextInput-root) {
    margin-bottom: 0;
  }

  :global(.mantine-TextInput-input) {
    border-radius: var(--hi-radius-lg);
    border: 1px solid var(--hi-color-gray-2);
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    background: var(--hi-color-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;

    @include mixins.respond-below(sm) {
      font-size: 1rem;
    }

    &:focus {
      border-color: var(--mantine-color-secondary-5);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--mantine-color-secondary-5) 12%, transparent);
    }

    &::placeholder {
      color: var(--hi-color-text-tertiary);
    }
  }

  :global(.mantine-Button-root) {
    height: 38px;
    border-radius: var(--hi-radius-lg);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0 1.25rem;
    white-space: nowrap;
    border: none;

    @include mixins.respond-below(sm) {
      height: 44px;
      width: 100%;
    }
  }
}

.ticketEmailInput {
  flex: 1;
}

.successMessage {
  padding: 1rem 1.25rem;
  background: var(--hi-color-gray);
  border-radius: var(--hi-radius-lg);
  border: 1px solid var(--hi-color-border);

  p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--hi-text);

    @include mixins.respond-below(sm) {
      font-size: 0.8125rem;
    }
  }
}

.resetLink {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hi-color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;

  &:hover {
    color: var(--mantine-color-secondary-5);
  }
}

.challenge {
  animation: challengeIn 0.25s ease-out;
}

.challengeHeader {
  @include auth.auth-header;
}

.challengeIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--mantine-color-secondary-4) 16%, transparent),
    color-mix(in srgb, var(--mantine-color-secondary-6) 22%, transparent));
  color: var(--mantine-color-secondary-6);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mantine-color-secondary-5) 18%, transparent);

  &.challengeIconWarning {
    background: color-mix(in srgb, var(--hi-color-warning) 14%, transparent);
    color: var(--hi-color-warning);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hi-color-warning) 22%, transparent);
  }
}

.recoveryInput {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 1.0625rem !important;
  letter-spacing: 0.08em;
  text-align: center;
}

.challengeLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.challengeLink {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mantine-color-secondary-5);
  transition: color 0.15s ease;

  &:hover {
    color: var(--mantine-color-secondary-7);
  }
}

.challengeHelp {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--hi-radius-lg);
  background: var(--hi-color-gray);
  color: var(--hi-color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  animation: challengeIn 0.2s ease-out;

  svg {
    flex-shrink: 0;
    margin-top: 1px;
  }

  strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--hi-text);
    font-weight: 600;
  }

  p {
    margin: 0;
  }
}

.backToLogin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hi-color-text-muted);

  &:hover {
    color: var(--hi-text);
  }
}

.noticeText {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--hi-color-text-muted);
}

.noticeActions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@keyframes challengeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge, .challengeHelp {
    animation: none;
  }
}

.accountList {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accountOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hi-color-gray-2);
  border-radius: var(--hi-radius-lg);
  background: var(--hi-color-white);
  color: var(--hi-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;

  @include mixins.respond-below(sm) {
    min-height: 56px;
  }

  svg {
    flex-shrink: 0;
    color: var(--hi-color-text-muted);
  }

  &:hover:not(:disabled) {
    border-color: var(--mantine-color-secondary-5);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mantine-color-secondary-5) 10%, transparent);
  }

  &:focus-visible {
    outline: 2px solid var(--mantine-color-secondary-5);
    outline-offset: 2px;
  }

  &:disabled:not([aria-busy="true"]) {
    opacity: 0.55;
    cursor: default;
  }
}

.accountName {
  min-width: 0;
  overflow-wrap: anywhere;
}

.formError {
  margin-bottom: 1.25rem;
}