@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* =========================================================
   MSK ACADEMIA — IDENTIDADE VISUAL
   Base: estrutura + marcações + interface + experimentação
   ========================================================= */

body.msk-academia,
body.profile-page {
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body.msk-academia::selection,
body.profile-page::selection {
  color: var(--ink);
  background: var(--lime);
}

/* ---------- fundamentos ---------- */
.primary-button,
.outline-button,
.light-button,
.text-button,
.carousel-cta,
.course-card button {
  border-radius: 8px;
}

.primary-button {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
  letter-spacing: .01em;
}
.primary-button:hover { background: var(--violet); border-color: var(--violet); }
.primary-button span { color: var(--lime); }

.outline-button { border-color: #c8c8c2; background: rgba(255,255,255,.55); }
.outline-button:hover { border-color: var(--violet); background: white; }

.eyebrow { letter-spacing: .15em; }
.eyebrow.dark { color: #6f716b; }

.app-main {
  background:
    linear-gradient(rgba(244,244,244,.94),rgba(244,244,244,.97)),
    linear-gradient(rgba(15,15,15,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,15,15,.045) 1px,transparent 1px),
    url("../images/backgrounds/msk-tech-bg-v1.webp") center top / cover fixed;
  background-size: auto, 40px 40px, 40px 40px, cover;
}

/* =========================================================
   LOGIN
   ========================================================= */
.login-shell {
  grid-template-columns: minmax(520px,1.18fr) minmax(420px,.82fr);
  background: var(--ink);
}

.login-brand {
  padding: 58px clamp(44px,6vw,96px);
  background:
    #0f0f0f url("../images/backgrounds/login-academia-hero.webp") center center / cover no-repeat;
}

.login-brand::before {
  z-index: 0;
  background:
    linear-gradient(90deg,rgba(15,15,15,.26) 0%,rgba(15,15,15,.05) 48%,rgba(15,15,15,.02) 100%);
}

.login-brand::after {
  display: none;
}

.login-brand > .brand-lockup { align-self: flex-start; }
.login-brand > .brand-lockup img { width: 330px; max-width: 58%; }

.login-panel {
  border-radius: 0;
  background:
    linear-gradient(rgba(15,15,15,.011) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,15,15,.011) 1px,transparent 1px),
    var(--paper);
  background-size: 40px 40px,40px 40px,auto;
  border-left: 1px solid rgba(255,255,255,.08);
}

.login-box { width: min(430px,100%); }
.status-pill {
  border: 1px solid #d4d5ce;
  border-radius: 5px;
  background: transparent;
  color: #676962;
}
.status-pill i { background: var(--lime); box-shadow: 0 0 0 4px rgba(200,245,66,.15); }
.login-box h2 { margin-top: 28px; font-size: clamp(38px,4vw,56px); line-height: .95; letter-spacing: -.055em; }
.login-box > p { max-width: 370px; line-height: 1.6; }
.login-box label { letter-spacing: .08em; text-transform: uppercase; }
.field-wrap { min-height: 54px; border-radius: 7px; border-color: #cacbc4; box-shadow: none; }
.field-wrap:focus-within { border-color: var(--violet); box-shadow: 4px 4px 0 rgba(139,92,246,.10); }
.login-button { border-radius: 7px; }
.login-button:hover { background: var(--violet); }
.secure-note span { color: var(--lime-dark); }
.login-studio-signature img { opacity: .55; }


/* =========================================================
   LOGIN / CONTEÚDO EDITORIAL SOBRE O HERO
   ========================================================= */
.login-brand {
  position: relative;
  isolation: isolate;
}

.login-brand::before {
  background:
    linear-gradient(90deg, rgba(15,15,15,.66) 0%, rgba(15,15,15,.34) 44%, rgba(15,15,15,.08) 72%, rgba(15,15,15,.02) 100%);
}

.login-brand-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 116px);
  display: flex;
  flex-direction: column;
}

.login-brand-logo {
  align-self: flex-start;
}

.login-brand-logo img {
  width: clamp(170px, 16vw, 250px) !important;
  max-width: none !important;
}

.login-brand-meta {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.56);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.login-brand-meta i,
.login-brand-kicker i,
.login-brand-signature i {
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 5px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(200,245,66,.24);
}

.login-brand-copy {
  width: min(470px, 56%);
  margin-top: auto;
  margin-bottom: clamp(80px, 11vh, 145px);
}

.login-brand-kicker {
  display: grid;
  gap: 5px;
  margin-bottom: clamp(34px, 5vh, 58px);
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.login-brand-copy h1 {
  margin: 0;
  color: #f4f4f4;
  font-size: clamp(54px, 5.15vw, 86px);
  font-weight: 700;
  line-height: .87;
  letter-spacing: -.065em;
}

.login-brand-copy h1 span,
.login-brand-copy h1 strong {
  display: block;
}

.login-brand-copy h1 strong {
  color: var(--lime);
  font-weight: 700;
}

.login-brand-copy p {
  max-width: 360px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.54);
  font-size: 14px;
  line-height: 1.55;
}

.login-brand-signature {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 9px;
  color: rgba(255,255,255,.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.login-brand-signature i {
  width: 28px;
  margin: 0;
}

@media (max-width: 1180px) {
  .login-brand-meta { display: none; }
  .login-brand-copy { width: min(520px, 72%); }
  .login-brand-copy h1 { font-size: clamp(48px, 6vw, 72px); }
}

@media (max-width: 980px) {
  .login-brand-copy { width: min(520px, 82%); }
  .login-brand-copy p { max-width: 330px; }
}

/* =========================================================
   APP / SIDEBAR / TOPBAR
   ========================================================= */
.app-shell { grid-template-columns: 260px 1fr; }
.sidebar {
  width: 260px;
  padding: 30px 17px 17px;
  background:
    radial-gradient(circle at 50% 6%,rgba(139,92,246,.12),transparent 23%),
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px),
    var(--ink);
  background-size: auto,32px 32px,32px 32px,auto;
}
.sidebar-brand { min-height: 68px; margin-bottom: 30px; justify-content: flex-start; padding-left: 10px; }
.sidebar-brand img { width: 160px; }
.main-nav { gap: 3px; }
.nav-item {
  min-height: 46px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.58);
  font-weight: 600;
}
.nav-item::before {
  content: "";
  width: 3px;
  height: 16px;
  margin-left: -4px;
  background: transparent;
  transition: background .18s ease,height .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.is-active {
  color: #fff;
  border-color: rgba(139,92,246,.34);
  background: rgba(139,92,246,.10);
  box-shadow: none;
}
.nav-item.is-active::before { height: 26px; background: var(--lime); }
.nav-item em { color: var(--ink); background: var(--lime); border-radius: 3px; }
.level-card { border-radius: 8px; background: rgba(255,255,255,.035); }
.level-icon { border-radius: 8px; color: var(--lime); border-color: rgba(200,245,66,.45); }
.avatar,.top-avatar { border-radius: 8px; }
.profile-menu { border-radius: 8px; background: #181818; }
.profile-menu a,.profile-menu button { border-radius: 5px; }

.topbar {
  height: 72px;
  padding-inline: clamp(22px,3.3vw,50px);
  border-bottom-color: rgba(15,15,15,.11);
  background: rgba(244,244,244,.82);
  backdrop-filter: blur(16px);
}
.breadcrumb {
  gap: 0;
  min-height: 34px;
  border-radius: 5px;
  color: #5f625b;
  background: transparent;
  box-shadow: none;
  border: 1px solid #d5d6cf;
  font-size: 9px;
  letter-spacing: .09em;
}
.breadcrumb span,.breadcrumb strong { min-height: 34px; padding-inline: 14px; }
.breadcrumb span::after { color: var(--violet); margin-left: 16px; }
.breadcrumb strong { color: var(--ink); }
.notification-button { border-radius: 7px; background: #fff; border-color: #d0d1cb; }
.notification-button i { background: var(--pink); }
.top-actions #adminLink { border-radius: 7px; background: var(--ink); box-shadow: none; }
.menu-button { border-radius: 7px; }

.route-view {
  width: min(1540px,100%);
  margin-inline: auto;
  padding: 42px clamp(22px,3.3vw,50px) 74px;
}

/* =========================================================
   HOME HERO INTERNO / GLITCH
   ========================================================= */
#route-home > .page-intro {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  overflow: hidden;
  align-items: flex-end;
  padding: clamp(30px,4vw,54px);
  margin-bottom: 24px;
  border: 1px solid #30302e;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(90deg,rgba(15,15,15,.93) 0%,rgba(15,15,15,.77) 40%,rgba(15,15,15,.22) 72%,rgba(15,15,15,.06) 100%),
    #0f0f0f url("../images/backgrounds/home-academia-banner.webp") center center / cover no-repeat;
}
#route-home > .page-intro::after {
  display: none;
}
#route-home > .page-intro > div { position: relative; z-index: 1; width: min(68%,800px); }
#route-home > .page-intro .eyebrow { color: var(--lime); }
#route-home > .page-intro h1,
#route-home > .page-intro h1 b { color: #fff; font-size: clamp(44px,5.5vw,78px); line-height: .92; letter-spacing: -.055em; }
#route-home > .page-intro h1 span { color: var(--violet); }
#route-home > .page-intro p { max-width: 570px; color: rgba(255,255,255,.60); line-height: 1.65; }
#route-home > .page-intro .outline-button { position: relative; z-index: 1; border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.04); }
#route-home > .page-intro .outline-button:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); }

.page-intro.compact {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid #d4d5cf;
}
.page-intro.compact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 76px;
  height: 3px;
  background: var(--violet);
}
.page-intro h1,.scorm-page-head h1 { font-size: clamp(38px,4vw,60px); letter-spacing: -.055em; }
.page-intro p,.scorm-page-head p { line-height: 1.6; }

/* =========================================================
   CARROSSEL
   ========================================================= */
.home-carousel {
  border-radius: 12px;
  border-color: rgba(15,15,15,.28);
  box-shadow: none;
}
.carousel-slide { padding: clamp(34px,5vw,68px) clamp(36px,6vw,82px); }
.carousel-kicker { border-radius: 4px; }
.carousel-copy h2 { font-size: clamp(36px,4.4vw,64px); letter-spacing: -.045em; }
.carousel-cta { border-radius: 6px; backdrop-filter: blur(10px); }
.carousel-arrow { border-radius: 7px; }
.carousel-dots button { border-radius: 2px; }
.carousel-slide-learning { background-image: linear-gradient(90deg,rgba(244,244,244,.97) 0%,rgba(244,244,244,.84) 44%,rgba(244,244,244,.04) 76%),url("../images/backgrounds/carousel-aprendizado-v1.webp"); }
.carousel-slide-progress { background-image: linear-gradient(90deg,rgba(15,15,15,.96) 0%,rgba(15,15,15,.79) 46%,rgba(15,15,15,.05) 76%),url("../images/backgrounds/carousel-progresso-v1.webp"); }
.carousel-slide-games { background-image: linear-gradient(90deg,rgba(244,244,244,.96) 0%,rgba(244,244,244,.82) 44%,rgba(244,244,244,.04) 76%),url("../images/backgrounds/carousel-games-v1.webp"); }

/* =========================================================
   CARDS / DASHBOARD
   ========================================================= */
.continue-card,
.stat-card,
.course-card,
.recommend-card,
.metric-card,
.learning-item,
.badge-item,
.course-outline,
.course-summary,
.scorm-info-row article {
  border-radius: 10px;
  box-shadow: none;
  border-color: #d6d7d0;
}
.continue-card { min-height: 342px; }
.visual-leadership { background: var(--ink); }
.visual-leadership::before { border-color: var(--lime); border-radius: 0; transform: rotate(45deg); opacity: .9; }
.visual-leadership::after { border-color: rgba(139,92,246,.5); border-radius: 0; transform: rotate(18deg); }
.course-label { border-radius: 4px; }
.continue-content h2 { font-size: 30px; }
.progress-track { border-radius: 1px; }
.progress-track i { border-radius: 1px; background: var(--violet); }
.stat-icon { border-radius: 7px; background: var(--lime); }
.dark-icon { background: var(--violet); }
.mini-week span { border-radius: 5px; }
.section-heading { margin-top: 44px; padding-top: 4px; }
.section-heading h2 { font-size: 26px; }

.course-card { position: relative; }
.course-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--violet);
  transition: width .25s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15,15,15,.08); }
.course-card:hover::after { width: 100%; }
.course-card button { border-radius: 6px; }
.thumb-design { background: var(--cyan); }
.thumb-tech { background: var(--violet); }
.thumb-feedback { background: var(--orange); }
.thumb-creativity { color: #fff; background: var(--pink); }

.achievement-card {
  border-radius: 10px;
  border: 1px solid #2b2b29;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    var(--ink);
  background-size: 30px 30px,30px 30px,auto;
}
.achievement-card::after { border-color: rgba(139,92,246,.22); border-radius: 0; transform: rotate(20deg); }
.achievement-badge div { border-radius: 10px; border-color: rgba(200,245,66,.45); }
.recommend-head > span:last-child { border-radius: 4px; color: #4a3510; background: rgba(255,107,53,.17); }

.home-progress-cards { gap: 10px; }
.home-progress-cards article {
  position: relative;
  border-radius: 8px;
  border-color: #d3d4cd;
  background: rgba(255,255,255,.86);
}
.home-progress-cards article::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 34px;
  height: 3px;
  background: var(--lime);
}
.home-progress-cards article:nth-child(2)::before { background: var(--cyan); }
.home-progress-cards article:nth-child(3)::before { background: var(--violet); }
.home-progress-cards article:nth-child(4)::before { background: var(--orange); }

/* =========================================================
   CATÁLOGO / HUBS
   ========================================================= */
.catalog-toolbar {
  padding: 14px;
  border: 1px solid #d1d2cb;
  border-radius: 8px;
  background: #f4f4f0;
  box-shadow: 0 14px 34px rgba(15,15,15,.035);
}

.search-field {
  min-height: 48px;
  border: 1px solid #cfd0c9;
  border-radius: 7px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-field:focus-within {
  border-color: var(--violet);
  box-shadow: 4px 4px 0 rgba(139,92,246,.09);
}

.search-field svg {
  color: var(--violet);
}

.filter-tabs {
  display: flex;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.filter-tabs button {
  position: relative;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #d3d4cd;
  border-radius: 999px;
  background: #fff;
  color: #62655f;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.filter-tabs button:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.filter-tabs button.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -3px 0 var(--lime);
}
.catalog-grid { gap: 16px; }
.catalog-grid .course-card { background: rgba(255,255,255,.88); }
.empty-state {
  border: 1px dashed #c7c8c1;
  border-radius: 10px;
  background: rgba(255,255,255,.54);
}
.empty-state div { color: var(--violet); }

.institutional-hero {
  border-radius: 10px;
  border: 1px solid #2d2d2b;
  background:
    radial-gradient(circle at 85% 25%,rgba(139,92,246,.18),transparent 28%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    var(--ink);
  background-size: auto,32px 32px,32px 32px,auto;
}
.institutional-hero strong { color: var(--lime); }

/* =========================================================
   PROGRESSO
   ========================================================= */
.journey-card {
  border-radius: 10px;
  border: 1px solid #2d2d2b;
  background:
    linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px),
    var(--ink);
  background-size: 30px 30px,30px 30px,auto;
}
.ring-progress { border-radius: 12px; background: conic-gradient(var(--lime) 0 43%,rgba(255,255,255,.10) 43% 100%); transform: rotate(2deg); }
.ring-progress::before { border-radius: 8px; }
.metric-card strong { font-size: 31px; }
.learning-thumb { border-radius: 6px; }
.badge-item > span { border-radius: 8px; }
.badge-item.unlocked:first-child > span { background: var(--lime); }

/* =========================================================
   SCORM / CURSO
   ========================================================= */
.prototype-badge { border-radius: 4px; }
.scorm-shell { border-radius: 10px; box-shadow: none; }
.lesson-button { border-radius: 6px; }
.lesson-number { border-radius: 5px; }
.slide-kicker { border-radius: 3px; }
.slide-visual { border-radius: 8px; }
.principle-grid article,.quiz-option,.completion-stats div { border-radius: 7px; }
.principle-grid span,.scorm-info-row article > span { border-radius: 6px; }
.debug-panel { border-radius: 8px; }
.course-hero { border-radius: 10px; }
.course-hero-visual { background: var(--lime); }
.course-hero-visual div { border-radius: 0; transform: rotate(45deg); border-color: var(--violet); }
.module-lessons i { border-radius: 4px; }

/* =========================================================
   NOTIFICAÇÕES
   ========================================================= */
.notification-panel { border-radius: 9px; border-color: #d0d1ca; box-shadow: 0 22px 58px rgba(15,15,15,.16); }
.notification-item.is-unread { border-left-color: var(--lime); background: rgba(200,245,66,.10); }
.toast { border-radius: 7px; }
.toast span { border-radius: 5px; background: var(--lime); }

/* =========================================================
   PROFILE.PHP
   ========================================================= */
body.profile-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15,15,15,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,15,15,.035) 1px,transparent 1px),
    var(--paper) !important;
  background-size: 40px 40px,40px 40px,auto !important;
}
.profile-page .wrap { width: min(1180px,calc(100% - 48px)) !important; padding-top: 38px !important; }
.profile-page .top { margin-bottom: 34px !important; padding-bottom: 22px; border-bottom: 1px solid #d2d3cc; }
.profile-page .top img { width: 220px !important; }
.profile-page .top a { border-radius: 6px !important; border-color: #c9cac3 !important; }
.profile-page .grid { grid-template-columns: 330px minmax(0,1fr) !important; gap: 20px !important; }
.profile-page .card { border-radius: 10px !important; border-color: #d2d3cc !important; box-shadow: none !important; }
.profile-page .grid > aside.card {
  color: #fff;
  background:
    radial-gradient(circle at 74% 12%,rgba(139,92,246,.18),transparent 25%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    var(--ink) !important;
  background-size: auto,30px 30px,30px 30px,auto !important;
  border-color: #2d2d2b !important;
}
.profile-page .grid > aside.card .muted { color: rgba(255,255,255,.55) !important; }
.profile-page .grid > aside.card .stat { background: rgba(255,255,255,.07) !important; border-radius: 6px !important; }
.profile-page .grid > aside.card .stat span { color: rgba(255,255,255,.46) !important; }
.profile-page .avatar { border-radius: 10px !important; background: var(--violet) !important; }
.profile-page input,.profile-page select { border-radius: 6px !important; }
.profile-page input:focus,.profile-page select:focus { outline: 2px solid rgba(139,92,246,.25); border-color: var(--violet) !important; }
.profile-page .button { border-radius: 6px !important; background: var(--ink) !important; }
.profile-page .button:hover { background: var(--violet) !important; }
.profile-page .course { border-color: #e1e1dc !important; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 1100px) {
  #route-home > .page-intro > div { width: min(72%,720px); }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; background: var(--paper); }
  .login-brand { display: none; }
  .login-panel { padding: 28px 24px 36px; }
  .mobile-brand { display: flex; margin-bottom: 34px; }
  .mobile-brand img { width: 220px; }
  .app-main { background-attachment: scroll; }
  .topbar { padding-inline: 18px; }
  .route-view { padding: 30px 20px 64px; }
  #route-home > .page-intro { min-height: 280px; padding: 30px; }
  #route-home > .page-intro > div { width: 72%; }
  #route-home > .page-intro h1,#route-home > .page-intro h1 b { font-size: clamp(38px,7vw,58px); }
  .profile-page .grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 580px) {
  .login-panel { padding: 24px 20px 30px; }
  .login-box h2 { font-size: 40px; }
  .route-view { padding: 26px 18px 56px; }
  .topbar { height: 68px; padding-inline: 14px; }
  .breadcrumb span { display: none; }
  .breadcrumb strong { padding-inline: 12px; }
  #route-home > .page-intro {
    min-height: 0;
    display: block;
    padding: 28px 24px 30px;
  }
  #route-home > .page-intro > div { width: 100%; }
  #route-home > .page-intro h1,#route-home > .page-intro h1 b { font-size: clamp(40px,12vw,58px); }
  #route-home > .page-intro .outline-button { width: 100%; margin-top: 24px; }
  .home-carousel { border-radius: 10px; }
  .carousel-slide { padding: 42px 34px 58px; }
  .continue-card,.stat-card,.course-card,.recommend-card,.metric-card,.learning-item,.badge-item { border-radius: 8px; }
  .profile-page .wrap { width: min(100% - 36px,1180px) !important; padding-top: 24px !important; }
  .profile-page .top { align-items: flex-start !important; gap: 14px; }
  .profile-page .top img { width: 170px !important; }
}


/* =========================================================
   LOGIN / ECOSSISTEMA MSK STUDIO
   ========================================================= */

.login-panel-footer {
  align-self: end;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* O menu abaixo ocupa parte do rodapé e naturalmente sobe o logo. */
.login-panel-footer .login-studio-signature {
  min-height: 42px;
  margin: 0;
}

.login-panel-footer .login-studio-signature img {
  width: 108px;
  max-width: 34vw;
  opacity: .55;
}

.login-ecosystem {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.login-ecosystem__label {
  color: #777a73;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
}

.login-ecosystem__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 18px;
}

.login-ecosystem__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: #747770;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease;
}

.login-ecosystem__links a:hover,
.login-ecosystem__links a:focus-visible {
  color: var(--ink);
}

.login-ecosystem__links a span {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  transition: transform .2s ease;
}

.login-ecosystem__links a:hover span,
.login-ecosystem__links a:focus-visible span {
  transform: translate(2px, -2px);
}

/* Cores das áreas */
.login-ecosystem__links .ecosystem-studio span {
  color: #C8F542;
}

.login-ecosystem__links .ecosystem-design span {
  color: #8B5CF6;
}

.login-ecosystem__links .ecosystem-games span {
  color: #FF6B35;
}

.login-ecosystem__links .ecosystem-experience span {
  color: #FF2E63;
}

@media (max-width: 820px) {
  .login-panel {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .login-panel-footer {
    margin-top: 34px;
    margin-bottom: 0;
    gap: 10px;
  }

  .login-panel-footer .login-studio-signature {
    min-height: 38px;
  }

  .login-panel-footer .login-studio-signature img {
    width: 96px;
  }

  .login-ecosystem {
    width: min(460px, 100%);
  }

  .login-ecosystem__label {
    font-size: 9px;
  }

  .login-ecosystem__links {
    gap: 4px 14px;
  }

  .login-ecosystem__links a {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .login-ecosystem__links {
    max-width: 320px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 4px;
  }

  .login-ecosystem__links a {
    justify-content: center;
  }
}


/* =========================================================
   LOGIN / POSIÇÃO DO LOGO MSK STUDIO
   ========================================================= */

@media (min-width: 821px) {
  .login-panel-footer .login-studio-signature {
    position: relative;
    top: -60px;
  }
}

