Skip to content

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

3.0 KB
Raw Blame
.auth-dropdown-wrapper {
  position: relative;
}

.auth-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 30;
}

.auth-dropdown {
  position: absolute;
  z-index: 40;
  margin-top: 0.5rem;
  min-width: 16rem;
  background-color: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
}

[data-mantine-color-scheme="dark"] .auth-dropdown {
  box-shadow: var(--shadow-md);
}

.auth-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--c-text);
  cursor: pointer;
}

.auth-guest-button {
  background-color: var(--c-surface);
  color: var(--c-brand);
  border: 2px solid currentColor;
}

[data-mantine-color-scheme="dark"] .auth-guest-button {
  background-color: transparent;
}

/* ── 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: 8rem;
  width: auto;
}

/* ── 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;
}

/* ── 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;
}