/* ============ Forticia home page — magazine editorial ============ */
/* Mirrors forticia-website src/index.css patterns exactly */

.ft-ease: cubic-bezier(0.22, 1, 0.36, 1);

@keyframes ft-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2.2%, -1.4%, 0); }
}

.page-content.home.forticia-home {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  background: #070b11;
  color: #f4efe6;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.forticia-home .tw-mb-8,
.forticia-home .hero {
  display: none;
}

/* ---------- Kicker / type ---------- */

.ft-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8bb4ff;
  margin: 0;
}

.ft-title,
.ft-h2 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f4efe6;
  margin: 14px 0 0;
}

.ft-title {
  font-size: clamp(46px, 7.4vw, 96px);
}

.ft-h2 {
  font-size: clamp(38px, 5.4vw, 72px);
}

.ft-deck {
  color: #b7b3a9;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  max-width: 44ch;
  line-height: 1.45;
  margin: 18px 0 0;
}

/* ---------- Cover ---------- */

.ft-cover {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ft-cover-media {
  position: absolute;
  inset: 0;
}

.ft-cover-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ft-kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}

.ft-cover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 17, 0.2) 0%, rgba(7, 11, 17, 0.25) 40%, rgba(7, 11, 17, 0.94) 100%),
    linear-gradient(90deg, rgba(7, 11, 17, 0.55), transparent 55%);
}

.ft-cover-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0 0 9vh;
}

.ft-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Buttons ---------- */

.ft-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-btn:hover::before {
  transform: scaleX(1);
}

.ft-btn-primary {
  color: #fff;
  background: #3b82f6;
}

.ft-btn-primary::before {
  background: #2563eb;
}

.ft-btn-ghost {
  color: #f4efe6;
  border: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-btn-ghost::before {
  background: #f4efe6;
}

.ft-btn-ghost:hover {
  color: #070b11;
  border-color: #f4efe6;
}

/* ---------- Domains ---------- */

.ft-domains {
  padding: 96px 6vw;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-domains-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
  max-width: 1180px;
  margin-inline: auto;
}

.ft-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin-inline: auto;
}

.ft-domain {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-height: 220px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #f4efe6;
  transition: border-color 0.3s ease, background 0.3s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-domain:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.06);
  padding-left: 32px;
}

.ft-domain > span {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  color: #8bb4ff;
  margin-bottom: 14px;
}

.ft-domain h3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 10px;
}

.ft-domain p {
  color: #b7b3a9;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Manifesto ---------- */

.ft-manifesto {
  padding: 96px 6vw;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-manifesto ol {
  list-style: none;
  margin: 0 auto;
  max-width: 1180px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-manifesto li {
  display: grid;
  grid-template-columns: 64px minmax(160px, 0.72fr) 1fr;
  gap: 12px 40px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-manifesto li:hover {
  padding-left: 8px;
}

.ft-manifesto li > span {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  color: #8bb4ff;
}

.ft-manifesto h3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  margin: 0;
  color: #f4efe6;
}

.ft-manifesto p {
  color: #b7b3a9;
  font-size: 15px;
  max-width: 46ch;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Reach ---------- */

.ft-reach {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-reach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/forticia/servers.jpg") center/cover no-repeat;
  animation: ft-kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

.ft-reach::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 17, 0.15), rgba(7, 11, 17, 0.92));
}

.ft-reach-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 80px 0 10vh;
}

.ft-reach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 360px;
  margin-top: 34px;
}

.ft-reach-grid a {
  position: relative;
  display: block;
  padding: 22px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  color: #f4efe6;
}

.ft-reach-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #f4efe6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ft-reach-grid a:hover::after {
  transform: scaleX(1);
}

.ft-reach-grid b {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.ft-reach-grid a:hover b {
  color: #8bb4ff;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .ft-domain-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ft-manifesto li {
    grid-template-columns: 48px 1fr;
    gap: 6px 16px;
    padding: 24px 0;
  }

  .ft-manifesto h3,
  .ft-manifesto p {
    grid-column: 2;
  }

  .ft-domains-head,
  .ft-reach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ft-title {
    font-size: 42px;
  }

  .ft-domain-grid {
    grid-template-columns: 1fr;
  }

  .ft-cover-actions {
    display: grid;
    width: min(100%, 360px);
  }

  .ft-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-cover-media img,
  .ft-reach::before {
    animation: none;
  }
}

/* ============ Sign-in (split editorial) ============ */

.page-content.user.signin {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  background: #070b11;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.ft-signin-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: 100%;
  min-height: 100vh;
}

.ft-signin-aside {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-signin-aside-media {
  position: absolute;
  inset: 0;
}

.ft-signin-aside-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ft-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

.ft-signin-aside-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 17, 0.2) 0%, rgba(7, 11, 17, 0.25) 40%, rgba(7, 11, 17, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 11, 17, 0.5), rgba(7, 11, 17, 0.15));
}

.ft-signin-aside-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
}

.ft-signin-title {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f4efe6;
  margin: 14px 0 0;
}

.ft-signin-aside-copy .ft-deck {
  font-size: 15px;
  max-width: 34ch;
  color: #b7b3a9;
}

.ft-signin-main {
  display: grid;
  place-items: center;
  padding: 48px 6vw;
}

.ft-signin-card {
  width: min(440px, 100%);
  padding: 48px 44px;
  background: #0c1118;
  border: 1px solid rgba(244, 239, 230, 0.14);
}

.ft-form-title {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #f4efe6;
  margin: 0 0 28px;
}

.ft-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.ft-field > span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d7a72;
}

.ft-field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 0;
  padding: 10px 0 12px;
  color: #f4efe6;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 0.3s ease;
}

.ft-field input::placeholder {
  color: rgba(125, 122, 114, 0.5);
}

.ft-field input:focus {
  border-bottom-color: #8bb4ff;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

/* checkbox row */
.ft-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 24px;
}

.ft-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b7b3a9;
  font-size: 13px;
  cursor: pointer;
}

.ft-check input {
  accent-color: #3b82f6;
  width: 14px;
  height: 14px;
}

.ft-forgot {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8bb4ff;
}

.ft-forgot:hover {
  color: #f4efe6;
}

/* submit button — brand pill */
.ft-submit {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 0 !important;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #3b82f6;
  color: #fff;
}

.ft-submit:hover {
  background: #2563eb;
}

/* divider between password and passkey / external */
.ft-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #7d7a72;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ft-divider::before,
.ft-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(244, 239, 230, 0.14);
}

.ft-divider span {
  color: #7d7a72;
}

/* footer links under the card */
.ft-form-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  display: grid;
  gap: 10px;
}

.ft-note {
  color: #b7b3a9;
  font-size: 13px;
  margin: 0;
}

.ft-note a,
.ft-link {
  color: #8bb4ff;
}

.ft-note a:hover,
.ft-link:hover {
  color: #f4efe6;
}

/* gitea alert inside the card */
.ft-signin-card .ui.message {
  border-radius: 0;
  border: 1px solid #5c1f22;
  background: #241316;
  color: #f26d6d;
  margin: 0 0 20px;
}

/* responsive: stack, hide aside on small screens */
@media (max-width: 980px) {
  .ft-signin-shell {
    grid-template-columns: 1fr;
  }

  .ft-signin-aside {
    display: none;
  }

  .ft-signin-main {
    padding: 24px;
  }

  .ft-signin-card {
    padding: 36px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ft-signin-aside-media img {
    animation: none;
  }
}