Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

18.7 KB
Raw Blame
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.75rem; /* 12px */
}

/* "or" divider between OAuth buttons and the email form (light-mode auth pages) */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
  /* Center "or" between the last OAuth button and the input box: the larger top
     margin balances the field label + input that sit below the smaller bottom
     margin, so the gap to the button ≈ the gap to the input. */
  margin: 2.25rem 0 0.75rem; /* 36px top, 12px bottom */
}

.auth-or-divider__rule {
  height: 0.0625rem; /* 1px */
  flex: 1 1 0%;
  background-color: rgb(var(--text-divider-rule-rgb-light) / 0.4);
}

.auth-or-divider__label {
  color: rgb(var(--text-divider-label-rgb-light) / 0.4);
  font-size: 0.75rem; /* 12px */
  white-space: nowrap;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* 4px */
}

.auth-label {
  font-size: 0.875rem; /* 14px */
  color: var(--auth-label-text);
  font-weight: 500;
}

/* Normalize the Mantine inputs used by the login/signup forms so they match the
   OAuth buttons and submit CTA: same height, radius, and font size. */
.auth-fields .mantine-Input-input {
  min-height: 2.625rem; /* 42px */
  height: 2.625rem;
  border-radius: 0.625rem; /* 10px */
  font-size: 0.9375rem; /* 15px */
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  border: 1px solid var(--auth-input-border);
  border-radius: 0.625rem; /* 10px */
  font-size: 0.875rem; /* 14px */
  background-color: var(--auth-input-bg);
  color: var(--auth-input-text);
  outline: none;
}

.auth-input:focus {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

.auth-button {
  width: 100%;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  border: none;
  border-radius: 0.625rem; /* 10px */
  background-color: var(--auth-button-bg);
  color: var(--auth-button-text);
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  margin-bottom: 0.75rem; /* 12px */
  cursor: pointer;
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-toggle-wrapper {
  text-align: center;
  margin-bottom: 0.625rem; /* 10px */
}

.auth-toggle-link {
  background: transparent;
  border: 0;
  color: var(--auth-label-text);
  font-size: 0.875rem; /* 14px */
  text-decoration: underline;
  cursor: pointer;
}

.auth-toggle-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-magic-row {
  display: flex;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.75rem; /* 12px */
}

.auth-magic-row .auth-input {
  flex: 1 1 auto;
}

.auth-magic-button {
  padding: 0.875rem 1rem; /* 14px 16px */
  border: none;
  border-radius: 0.625rem; /* 10px */
  background-color: var(--auth-magic-button-bg);
  color: var(--auth-magic-button-text);
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.auth-magic-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-terms {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  margin-bottom: 0.5rem; /* 8px */
}

.auth-checkbox {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  accent-color: var(--c-brand);
}

.auth-terms-label {
  font-size: 0.75rem; /* 12px */
  color: var(--auth-label-text);
}

.auth-terms-label a {
  color: inherit;
  text-decoration: underline;
}

.auth-confirm {
  overflow: hidden;
  transition:
    max-height 240ms ease,
    opacity 200ms ease;
}

/* OAuth Button Styles */
.oauth-container-icons {
  display: flex;
  margin-bottom: 0.625rem; /* 10px */
  justify-content: space-between;
}

.oauth-container-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; /* 12px */
  margin-bottom: 0.625rem; /* 10px */
}

.oauth-container-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.875rem; /* 14px */
  align-items: stretch;
}

.oauth-container-vertical.oauth-container-single {
  align-items: center;
}

/* These OAuth buttons are shared <Button>s. Pin their pill shape + height so the
   auth styling wins over the design-system Button base regardless of CSS load
   order — Storybook injects the Button/Mantine CSS after auth.css (the app loads
   it before), which otherwise flips these single-class rules to the Button's
   defaults (rounded-rect + 36px). Higher specificity keeps both identical. */
.oauth-button-vertical.sui-btn.mantine-Button-root {
  border-radius: 999px;
  min-height: 3.5rem; /* 56px */
}
.oauth-button-fullwidth.sui-btn.mantine-Button-root {
  border-radius: 0.625rem; /* 10px */
  min-height: 0;
}

/* Match the submit CTA's corners to the OAuth buttons and inputs (10px). */
.auth-submit.sui-btn.mantine-Button-root {
  border-radius: 0.625rem; /* 10px */
}

.oauth-button-icon {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  border-radius: 0.875rem; /* 14px */
  border: 1px solid var(--auth-input-border);
  background: var(--auth-card-bg);
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04); /* 0 2px 6px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-button-icon:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-button-grid {
  width: 100%;
  padding: 1rem; /* 16px */
  border-radius: 0.875rem; /* 14px */
  border: 1px solid var(--auth-input-border);
  background: var(--auth-card-bg);
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04); /* 0 2px 6px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.oauth-button-grid:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-button-vertical {
  width: 100%;
  min-height: 3.5rem; /* 56px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Vertical padding is driven by the shared Button's --sui-btn-py so it beats
     the Button's own padding-block; horizontal stays in the shorthand. */
  --sui-btn-py: 1rem; /* 16px (md) */
  padding: 1rem 1.5rem; /* 16px 24px */
  border: 1px solid var(--auth-input-border);
  border-radius: 999px;
  background-color: var(--auth-card-bg);
  font-size: 1rem; /* 16px */
  font-weight: 600;
  color: var(--auth-text-primary);
  cursor: pointer;
  gap: 1rem; /* 16px */
  font-family: inherit;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.oauth-button-vertical:hover:not(:disabled) {
  background-color: var(--c-hover);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  border-color: var(--c-border);
}

.oauth-button-vertical-tinted {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--oauth-accent) 65%, var(--c-text)) 0 6px,
    var(--c-text) 6px 100%
  );
}

.oauth-button-vertical-tinted:hover:not(:disabled) {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--oauth-accent) 75%, var(--c-text)) 0 6px,
    var(--c-text) 6px 100%
  );
}

.oauth-button-vertical-legacy {
  min-height: 0;
  justify-content: flex-start;
  padding: 0.75rem 1rem; /* 12px 16px */
  border: 1px solid var(--c-border);
  border-radius: 0.75rem; /* 12px */
  background-color: var(--auth-card-bg);
  font-weight: 500;
  color: var(--auth-text-primary);
  box-shadow: none;
}

.oauth-button-vertical-legacy:hover:not(:disabled) {
  background-color: var(--c-hover);
  color: var(--auth-text-primary);
  box-shadow: none;
}

.oauth-button-vertical-legacy .mantine-Button-inner,
.oauth-button-vertical-legacy .mantine-Button-label {
  justify-content: flex-start;
}

.oauth-button-vertical-legacy .oauth-button-left {
  gap: 0.75rem;
}

.oauth-button-vertical-legacy .oauth-icon-wrapper {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.oauth-button-vertical-legacy .oauth-button-text {
  padding-bottom: 0;
}

.oauth-button-vertical-outline {
  background: transparent;
  border: 2px solid var(--c-text);
  color: var(--c-text);
  box-shadow: none;
}

.oauth-button-vertical-outline:hover:not(:disabled) {
  background: var(--c-text);
  color: var(--c-surface);
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.2);
}

.oauth-button-vertical-light {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.oauth-button-vertical-light:hover:not(:disabled) {
  background: var(--c-hover);
  color: var(--c-text);
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.16);
}

.oauth-button-vertical:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.oauth-button-vertical:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-primary) 50%, transparent);
  outline-offset: 2px;
}

/* Fix Mantine Button internal spans to not crop content */
.oauth-button-vertical .mantine-Button-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oauth-button-vertical .mantine-Button-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.oauth-icon-small {
  width: 1.75rem; /* 28px */
  height: 1.75rem; /* 28px */
  display: block;
}

.oauth-icon-medium {
  width: 1.75rem; /* 28px */
  height: 1.75rem; /* 28px */
  display: block;
}

/* Fullwidth OAuth rows use a smaller icon so button height matches the inputs. */
.oauth-button-fullwidth .oauth-icon-medium {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
}

.oauth-icon-tiny {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  display: block;
  flex-shrink: 0;
}

.oauth-container-vertical.oauth-container-single .oauth-button-vertical {
  max-width: 26.25rem; /* 420px */
}

.oauth-button-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  flex: 1 1 auto;
}

.oauth-button-text {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0.0625rem; /* 1px - prevent descender clipping */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oauth-icon-wrapper {
  width: 2.25rem; /* 36px */
  height: 2.25rem; /* 36px */
  border-radius: 0.75rem; /* 12px */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-sunken);
  border: 1px solid var(--auth-input-border);
}

.oauth-button-vertical-tinted .oauth-icon-wrapper {
  background: color-mix(
    in srgb,
    var(--oauth-accent) 20%,
    rgba(255, 255, 255, 0.08)
  );
  border-color: color-mix(
    in srgb,
    var(--oauth-accent) 35%,
    rgba(255, 255, 255, 0.2)
  );
}

.oauth-button-vertical-outline .oauth-icon-wrapper,
.oauth-button-vertical-light .oauth-icon-wrapper {
  background: var(--c-surface-sunken);
  border-color: var(--c-border);
}
.oauth-button-right {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  flex-shrink: 0;
  color: inherit;
}

.oauth-arrow-icon {
  width: 1.1rem; /* 18px */
  height: 1.1rem; /* 18px */
  display: block;
}

.sso-demo-block {
  margin-bottom: 1.5rem;
}

.sso-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.sso-demo-card {
  border: 1px solid var(--auth-input-border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--auth-card-bg);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.sso-demo-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--auth-text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Login Header Styles */
.login-header {
  margin-bottom: 1rem; /* 16px */
  margin-top: 0.5rem; /* 8px */
}

.login-header-centered {
  text-align: center;
  margin-bottom: 1.5rem; /* 24px */
}

.login-header-centered .login-header-logos {
  justify-content: center;
}

.login-header-centered .login-logo-text {
  height: 2.5rem; /* 40px */
}

.login-header-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-bottom: 1.25rem; /* 20px */
}

.login-logo-icon {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  border-radius: 0.5rem; /* 8px */
}

.login-logo-text {
  height: 2rem; /* 32px - increased from 24px */
}

.login-title {
  font-size: 2rem; /* 32px */
  font-weight: 800;
  color: var(--auth-text-primary);
  margin: 0 0 0.375rem; /* 0 0 6px */
}

.login-subtitle {
  color: var(--auth-text-secondary);
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

/* Navigation Link Styles */
.navigation-link-container {
  text-align: center;
}

.navigation-link-button {
  background: none;
  border: none;
  color: var(--auth-label-text);
  font-size: 0.875rem; /* 14px */
  cursor: pointer;
  text-decoration: underline;
}

.navigation-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Message Styles */
.error-message {
  padding: 1rem; /* 16px */
  background-color: var(--auth-error-bg);
  border: 1px solid var(--auth-error-border);
  border-radius: 0.5rem; /* 8px */
  margin-bottom: 1.5rem; /* 24px */
}

.error-message-text {
  color: var(--auth-error-text);
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

.success-message {
  padding: 1rem; /* 16px */
  background-color: var(--auth-success-bg);
  border: 1px solid var(--auth-success-border);
  border-radius: 0.5rem; /* 8px */
  margin-bottom: 1.5rem; /* 24px */
}

.success-message-text {
  color: var(--auth-success-text);
  font-size: 0.875rem; /* 14px */
  margin: 0;
}

/* Field-level error styles */
.auth-field-error {
  color: var(--auth-error-text);
  font-size: 0.6875rem; /* 11px */
  margin-top: 0.125rem; /* 2px */
  line-height: 1.1;
}

.auth-input-error {
  border-color: var(--auth-error-text) !important;
}

.auth-input-error:focus {
  border-color: var(--auth-error-text) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-danger) 10%, transparent) !important;
}

/* Shared auth styles extracted from inline */
.auth-section {
  margin: 0.75rem 0;
}

.auth-section-sm {
  margin: 0.5rem 0;
}

.auth-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 0.25rem;
}

.auth-bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.auth-link-black {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem; /* 14px */
  color: var(--auth-text-primary);
}

.auth-dot-black {
  opacity: 0.5;
  padding: 0 0.5rem;
  color: var(--auth-text-primary);
}

/* Email login button - red CTA style matching SaaS version */
.auth-cta-button {
  background-color: var(--c-brand) !important;
  color: white !important;
  border: none !important;
  font-weight: 600 !important;
}

.auth-cta-button:hover:not(:disabled) {
  background-color: var(--c-brand-hover) !important;
}

.auth-cta-button:disabled {
  background-color: var(--c-brand) !important;
  opacity: 0.6 !important;
}

/* ── Logo block ─────────────────────────────────────────────────────── */
.auth-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  animation: authFadeUp 0.4s ease both;
}

.auth-logo-header {
  height: 6.5rem; /* 104px */
  width: auto;
}

/* Two logo variants are rendered; show the one matching the active theme. */
.auth-logo-header--dark {
  display: none;
}
[data-mantine-color-scheme="dark"] .auth-logo-header--light {
  display: none;
}
[data-mantine-color-scheme="dark"] .auth-logo-header--dark {
  display: block;
}

/* ── Page entrance animation ────────────────────────────────────────── */
@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Expandable trigger button state ────────────────────────────────── */
.auth-expandable-trigger {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.auth-expandable-trigger--active {
  border-color: var(--c-brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 12%, transparent);
}

/* ── Animated expand/collapse via grid-template-rows ───────────────── */
.auth-expand-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 220ms ease;
  opacity: 0;
}

.auth-expand-grid--open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.auth-expand-inner {
  overflow: hidden;
  min-height: 0;
}

.oauth-button-fullwidth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Vertical padding via the shared Button's --sui-btn-py (beats the Button's
     own padding-block); horizontal stays in the shorthand. */
  --sui-btn-py: 0.625rem; /* 10px */
  padding: 0.625rem 1rem; /* 10px 16px */
  border: 1px solid var(--c-border);
  border-radius: 0.625rem; /* 10px */
  background-color: var(--c-surface);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  gap: 0.5rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.oauth-button-fullwidth:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.oauth-button-fullwidth:hover:not(:disabled) {
  background-color: var(--c-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-mantine-color-scheme="dark"] .oauth-button-fullwidth {
  background-color: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
  box-shadow: none;
}

[data-mantine-color-scheme="dark"]
  .oauth-button-fullwidth:hover:not(:disabled) {
  background-color: var(--c-surface-raised);
  box-shadow: none;
}

/* ── Icon+label group — keeps icons vertically aligned across buttons ── */
.oauth-btn-group {
  display: inline-flex;
  align-items: center;
  min-width: 12.5rem;
}

.oauth-btn-label {
  flex: 1;
  text-align: center;
}

/* ── Icon helpers inside oauth-button-fullwidth ─────────────────────── */
.auth-at-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 0.5rem;
  display: inline-block;
  width: 1.75rem;
  text-align: center;
  flex-shrink: 0;
}

/* ── Fullwidth OAuth (SaaS-screen canonical look — shared so the portal link
   modal matches the SaaS editor login exactly) ──────────────────────────── */
.oauth-container-fullwidth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}