/* 55printing my-account pages - uses theme tokens from enhancements.css */

.ff-my-account-main,
.ff-my-account-landing-main {
  padding: 28px 0 48px;
}


.ff-my-account-landing-split {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 1px minmax(320px, 440px);
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 24px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto 0 -16px;
}

.ff-my-account-landing-divider {
  width: 1px;
  min-height: 280px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0) 0%,
    rgba(148, 163, 184, 0.42) 10%,
    rgba(148, 163, 184, 0.42) 90%,
    rgba(148, 163, 184, 0) 100%
  );
}

.ff-my-account-landing-copy {
  min-width: 0;
}

.ff-my-account-landing-rail {
  width: 4px;
  border-radius: 999px;
  align-self: stretch;
  min-height: 220px;
  background: linear-gradient(
    180deg,
    rgba(11, 116, 218, 0) 0%,
    rgba(11, 116, 218, 0.1) 14%,
    rgba(29, 78, 216, 0.16) 50%,
    rgba(11, 116, 218, 0.1) 86%,
    rgba(11, 116, 218, 0) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(11, 116, 218, 0.05);
}

.ff-my-account-landing-copy-inner {
  min-width: 0;
}

.ff-my-account-hero {
  text-align: left;
  margin-bottom: 28px;
}

.ff-my-account-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.ff-my-account-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

/* Designer gate banner: only when redirected from Design Studio while logged out */
.ff-designer-gate-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(236, 254, 255, 0.9) 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
  transform-origin: top center;
}

.ff-designer-gate-banner.is-jumping-in {
  animation: ff-designer-gate-jump-in 0.85s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.ff-designer-gate-banner.is-jumping-in .ff-designer-gate-banner__icon {
  animation: ff-designer-gate-icon-pop 0.9s cubic-bezier(0.22, 1.55, 0.36, 1) 0.12s both;
}

.ff-designer-gate-banner.is-jumping-in .ff-designer-gate-banner__copy {
  animation: ff-designer-gate-copy-in 0.55s ease-out 0.22s both;
}

@keyframes ff-designer-gate-jump-in {
  0% {
    opacity: 0;
    transform: translateY(-42px) scale(0.86) rotate(-1.5deg);
    box-shadow: 0 0 0 rgba(14, 165, 233, 0);
  }
  55% {
    opacity: 1;
    transform: translateY(8px) scale(1.04) rotate(0.6deg);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
  }
  75% {
    transform: translateY(-4px) scale(0.99) rotate(-0.3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
  }
}

@keyframes ff-designer-gate-icon-pop {
  0% {
    transform: scale(0.4) rotate(-25deg);
    opacity: 0.4;
  }
  60% {
    transform: scale(1.18) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes ff-designer-gate-copy-in {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-designer-gate-banner.is-jumping-in,
  .ff-designer-gate-banner.is-jumping-in .ff-designer-gate-banner__icon,
  .ff-designer-gate-banner.is-jumping-in .ff-designer-gate-banner__copy {
    animation: none;
  }
}

.ff-designer-gate-banner__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0ea5e9, #22d3ee);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.ff-designer-gate-banner__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ff-designer-gate-banner__copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.55vw, 1.05rem);
  font-weight: 800;
  color: #0c4a6e;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .ff-designer-gate-banner__copy strong {
    white-space: normal;
  }
}

/* Featured Design Studio app card on login landing */
.ff-my-account-app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: linear-gradient(120deg, #fff 0%, #f0f9ff 100%);
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.ff-my-account-app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-lg);
}

.ff-my-account-app-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0284c7, #06b6d4);
  color: #fff;
  font-size: 1.4rem;
}

.ff-my-account-app-card__body strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
}

.ff-my-account-app-card__body span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.ff-my-account-app-card__badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .ff-my-account-app-card {
    grid-template-columns: auto 1fr;
  }

  .ff-my-account-app-card__badge {
    grid-column: 2;
    justify-self: start;
  }
}

.ff-my-account-card {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  /* Let the card grow with taller forms (set-password, register) instead of
     clipping content with overflow:hidden. Rounded corners are preserved on
     the head and body children below. */
  overflow: visible;
}

.ff-my-account-card-head {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}

.ff-my-account-card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.ff-my-account-card-body {
  padding: 8px 8px 16px;
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
}

.ff-my-account-card .auth-widget {
  margin: 0 auto;
}

.ff-my-account-quick-links {
  max-width: 920px;
  margin: 36px auto 0;
}

.ff-my-account-quick-links--inline {
  max-width: none;
  margin: 0;
}

.ff-my-account-quick-links--inline h3 {
  text-align: left;
}

.ff-my-account-quick-links h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
  text-align: center;
}

.ff-my-account-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 767.98px) {
  .ff-my-account-landing-split {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
  }

  .ff-my-account-landing-divider,
  .ff-my-account-landing-rail {
    display: none;
  }

  /* Keep left-column content (Design Studio card + links) above login */
  .ff-my-account-landing-split .ff-my-account-landing-copy {
    order: 0;
  }

  .ff-my-account-landing-split .ff-my-account-card {
    order: 1;
  }

  .ff-my-account-quick-grid {
    grid-template-columns: 1fr;
  }
}

.ff-my-account-quick-grid a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.ff-my-account-quick-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 139, 202, 0.35);
  box-shadow: var(--shadow-lg);
  color: var(--brand-dark);
  text-decoration: none;
}

.ff-my-account-quick-grid a strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.ff-my-account-quick-grid a span {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

.ff-my-account-layout-container {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  grid-template-areas:
    "nav nav"
    "aside main";
  gap: 1.15rem 1.5rem;
  align-items: start;
}

.ff-my-account-layout-container .my-account-top-nav {
  grid-area: nav;
}

.ff-my-account-layout-container .my-account-aside {
  grid-area: aside;
}

.ff-my-account-layout-container .my-account-main-content {
  grid-area: main;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .ff-my-account-layout-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "aside"
      "main";
  }
}

.ff-my-account-layout-container.centered-content-table {
  max-width: 1280px;
  margin: 0 auto;
}

.ff-my-account-page-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ff-my-account-page-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-pale), var(--brand));
}
